var myDate=new Date();   
document.write(myDate.toLocaleDateString().toString()+"<br>");
