var time=new Date();
var lmonth=time.getMonth() + 1;
var date=time.getDate();
var year=time.getYear();
if (year < 2000)    
year = year + 1900;