0

I am using date and time picker to get current date but when i get date from date and time picker first time it gives me current date and time i save the record and when i try to get date and time second time without unloading the form it does not work please help me.

DateTimePicker1.Text = DateTime.Now.ToString()  

TextBox12.Text = DateTimePicker1.Value.ToString()
2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by pritesh2010
0

just explian your your question. then we can help you. as per this try this code this will solve your problem.

DTPpicker.Value=DateTime.Now
texbox.text=DTPpicker.Value.Tostring()
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.