stangn99
01-31-2007, 09:12 PM
I need to get the date to write into an Input box in the body of my page.
I have the date working using the following code:
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)
This displays the date on the top of the page. I need it to display the date INTO an INPUT BOX placed in the BODY of my page.
Any help would be appreciated.
Thanks.
I have the date working using the following code:
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)
This displays the date on the top of the page. I need it to display the date INTO an INPUT BOX placed in the BODY of my page.
Any help would be appreciated.
Thanks.