var mydate = new Date('2014-04-03');
console.log(mydate.toDateString());
new Date('2011-04-11')
or
new Date('2011-04-11T11:51:00')
{onchange}var d=parseDate(this.value);var today=new Date(); if (d<today){alert('Remind : Purchase plan date is before today.');}{/onchange}
沒有留言:
張貼留言