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
How to pass DateTimePicker value as a parameter into a function and convert it into DateTime
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Madhu KRank #1,514 · 1.1K reputationPosted Nov 17, 2010, 9:40 PM EST
DateTime dt = Convert.ToDateTime(dateTimePicker1.Text);
dt will have the selected Date in datetime format