All, I\'m using the jQuery UI for the date picker. I\'m trying to check with javascript though that the date the user has entered is in the past. Here is my form code:
var datep = $('#datepicker').val(); if(Date.parse(datep)-Date.parse(new Date())<0) { // do something }