function print_todays_date() { var d=new Date(); document.write(d.toLocaleString()); }