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()

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()

Thanks it resolved my problem.

mark your thread as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.