Just convert to a Date
object and
compare your date value to Date.now
- for
example:
var endDate = Date.parse('4/25/2015');
var currentDate = Date.now();
if (endDate >= currentDate) {
return true;
}
not working :(
ReplyDelete