Hi,
I need to pass input date from DateTimePicker control of Windows form to a function and convert it into DateTime for further programming.
Plese help.
Sheethal
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Madhu KPosted Nov 18, 2010, 2:40 AM
DateTime dt = Convert.ToDateTime(dateTimePicker1.Text);
dt will have the selected Date in datetime format