Thursday, December 08, 2011

A Cool Date Library in JavaScript

After learning in a funny way that in Javascript

Date.parse(DateToValue) <= Date.parse(DateFromValue)

does not behave the way it was expected, using American date format in the DateXXValue parameters and having no ability to specify that, I looked into solutions for comparing the dates in the input fields.

There is a date.js library that is very useful in solving the above issue. I posted the links here.

No comments: