var mydate= new Date()
var theyear=mydate.getFullYear()
var themonth=mydate.getMonth()+1
var thetoday=mydate.getDate()

document.write(themonth+"/"+thetoday+"/"+theyear)