By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

how to solve the time problem at run-time

P: 14
we get the same time 12:00:00 am at run time in textbox in ,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 to get this.......

thanks in advance..plz reply..
Apr 26 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 759
Use DateTime dtFromTextbox1=Convert.ToDateTime(Tetbox1.text)

For this the date time entered will be in exact form of datetime else it will leads to exception
Apr 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.