views:

360

answers:

1

Hello ,

yet I didnt find a jquery function that validate value to be a future date ... help please :)

+1  A: 

You can do this:

function isFutureDate()
{
    var date=new Date();
    date.setFullYear(2020,1,1);
    var _now=new Date();
    if(date.getTime()>_now.getTime())
        {
      // date is future
        }
}
TeKapa
10X alot TeKapa
haddar