var myDate=new Date();
myDate=myDate.toLocaleString();
document.write(myDate.toString());