Live Chat Icon For mobile
Live Chat Icon

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


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


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

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.