Reading Date from Datetime picker control in C#.NET 2.0

K

Kondapanaidu

Hi,

How to read selected date from Datetimepicker control in C#.NET2.0
Windows applications.

Thanks in advance
 
P

prabha1912

hi

use this,

DateTime varDate;

varDate=dateTimePicker1.Value;


Use CustomFormat Property as dd/MM/yyyy and set Format property to
Custom if u want date/month/year format

Happy coding.

Regards
Ammu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top