Javascript help - compare two dates in (dd/MMM/yyyy) format

Posted by Kettenbach on Stack Overflow See other posts from Stack Overflow or by Kettenbach
Published on 2010-05-11T16:59:39Z Indexed on 2010/05/11 17:14 UTC
Read the original article Hit count: 372

Filed under:
|
|

Hi All,

I am trying to compare to textbox values on an aspx form. Both the values represent dates. The are formatted like "dd/MMM/yyyy". How can I compare them in javascript to see if they are not equal and which one is greater etc... Does javascript have a date constructor for strings like this? Any tips would be appreciated. Thanks for the help.

Cheers, ~ck in San Diego

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about date