When my page displays the text box contains a string date format. ex: 0/0/1

I want it to display the date that is displayed on the dtpicker control..

I tried this DateBox.value = dtpicker1.value

Actually here is my code:

Sub Window_Onload
on error resume next
Form1.DateBox.value = empty
window.settimeout "Init", 5, vbscript
Form1.DateBox.value = cstr(form1.Dtpicker1.month) & "/" & cstr(form1.dtpicker1.day) & "/" & cstr(form1.dtpicker1.year)

end sub


sub Init
form1.dtpicker1.value = now
end sub