Thursday, January 19, 2012

jQuery date comparison

var foo = $('#whatever').val();

   if (foo != null) {

      if ((new Date(foo)).getTime() < (new Date()).getTime()) {

         
yet more code...

No comments:

Post a Comment