Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string compare on date in js

var d1 = Date.parse("2012-11-01");
var d2 = Date.parse("2012-11-04");
if (d1 < d2) {
    alert ("Error!");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #compare #date #js
ADD COMMENT
Topic
Name
4+4 =