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
Related posts: