I have 3 DropDownLists on the page : one for a Month, second one for a Day, and the last one for a Year. How can I let the user choose the data and enter it to ‘datetime’ column in the database.

Platform: ASP.NET|Category: Dropdownlist

VB.NET

Dim dt as DateTime = DateTime.Parse(ddlMonth.SelectedItem.Text & '/' & ddlDay.SelectedItem.Text & '/' & ddlYear.SelectedItem.Text )

C#

DateTime dt = DateTime.Parse(ddlMonth.SelectedItem.Text & '/' & ddlDay.SelectedItem.Text & '/' & ddlYear.SelectedItem.Text );