function compareDate(DateOne)
{
var OneMonth = DateOne.substring(5,DateOne.lastIndexOf ("-"));
var OneDay = DateOne.substring(DateOne.length,DateOne.lastIndexOf ("-")+1);
var OneYear = DateOne.substring(0,DateOne.indexOf ("-"));
if (Date.parse(OneMonth+"/"+OneDay+"/"+OneYear) >
new Date().getTime())
{
return true;
}
else
{
return false;
}
}
没有评论:
发表评论