var mytime = new Date()
var mymonth = mytime.getMonth() + 1 // for javascript january = 0  correct this by adding 1
var myday = mytime.getDate()
var myyear = mytime.getFullYear()
document.write(mymonth + "/" + myday + "/" + myyear)
Beware that this is the date on the client's computer. For forms use the date on your server.

Related Blogs

  • Related Blogs on

Leave a Reply

Your email address will not be published. Required fields are marked *