how to solve the time problem at run-time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anianu
    New Member
    • Feb 2007
    • 14

    how to solve the time problem at run-time

    we get the same time 12:00:00 am at run time in textbox in asp.net ,whenever we do the data entry in respect to time plz tell me how to solve the problem.instead we must get the exact time the data entry is made.how to get this.......





    thanks in advance..plz reply..
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    Use DateTime dtFromTextbox1= Convert.ToDateT ime(Tetbox1.tex t)

    For this the date time entered will be in exact form of datetime else it will leads to exception
    :)

    Comment

    Working...