time comparison in javascript code example
Example: compare date and time in js
var isLarger = new Date("2-11-2012 13:40:00") > new Date("01-11-2012 10:40:00");
var isLarger = new Date("2-11-2012 13:40:00") > new Date("01-11-2012 10:40:00");