Results 1 to 2 of 2

Thread: How do i write todays date to a hidden field ??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    81

    Wink How do i write todays date to a hidden field ??

    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 ???

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    One way where you won't have to worry about the Regional settings of the server is:
    Code:
    <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)
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width