return new Date(parseInt(results[1]),parseInt(results[2]) -1,parseInt(results[3]),parseInt(results[4]),parseInt(results[5]),parseInt(results[6]),parseInt(results[7]));
}
return null;
}
function rain() { obj1 = new Date().format("yyyy-MM-dd hh:mm:ss"); obj2 = new Date().format("yyyy-MM-dd"); obj3 = new Date().format("yyyy/MM/dd"); obj4 = new Date().format("MM/dd/yyyy"); obj5 = new Date().format("yyyy-MM-dd hh:mm"); alert("obj1="+obj1+ "/n obj2="+obj2 + "/n obj3=" +obj3+ "/n obj4=" +obj4); alert(obj5); var str = "2010-1-10 22:10:10"; var dates = parseDate(str); alert(dates.getDate()); obj7 =dates.format("yyyy-MM-dd"); alert(obj7); } rain(); //--> </SCRIPT>