Auto generate date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akv006
    New Member
    • Oct 2007
    • 8

    Auto generate date

    How to autogenerate the current date in a text box in asp.net
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Originally posted by akv006
    How to autogenerate the current date in a text box in asp.net
    Hi akv006,

    You can use the date function date.now to get the current date. e.g.

    Code:
     txtDateBox.Text = Date.Now.ToShortDateString
    Does this help?

    Dr b

    Comment

    Working...