PDA

Click to See Complete Forum and Search --> : How do i write todays date to a hidden field ??


Johnny23
May 3rd, 2001, 05:47 PM
simply easy question but i dunno how to do it

i would like to assign Todays Date to a hidden field in my asp page ??


How do i do this in

dd/mm/yyyy Format ???

monte96
May 3rd, 2001, 07:29 PM
One way where you won't have to worry about the Regional settings of the server is:

<INPUT type=hidden name=txtDate id=txtDate value="<%=Right("0" & Day(Date), 2) & "/" & Right("0" & Month(Date), 2) & "/" & Year(Date)%>">

Do it yourself formatting :c)