This article will help you to resolve problems to compare two Dates using JavaScript :
CRM 2016 – How to Compare Two Dates Using JavaScript
I have encountered many confused developers attempting to compare two dates using JavaScript. There are many methods or algorithms for comparing dates but I am showing the simplest ways to compare dates as well as times using JavaScript.
<script type=\”text/javascript\”language=\”javascript\”>
function CompareDates()
{
var dateOne = new Date(\”2017/04/12\”); //Year, Month, Date
var dateTwo = new Date(\”2017/05/12\”); //Year, Month, Date
if (dateOne > dateTwo)
{
alert(\”Date One is greater then Date Two.\”);
}
else
{
alert(\”Date Two is greater then Date One.\”);
}
}
CompareDate();
</script>
Special thanks to (hackingsetting50@gmail.com) for exposing my cheating husband. Right with me i got a lot of evidences and proofs that shows that my husband is a fuck boy and as well a cheater ranging from his text messages, call logs, whats-app messages, deleted messages and many more, All thanks to (hackingsetting50@gmail.com), if not for him i will never know what has been going on for a long time. Contact him now and thank me later.
LikeLike