Hi all, I am selecting the date from dropdownlist. but i am getting this exception "SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM." Here is my code:
DateTime dateofjoining = new DateTime(DropDownListDay.SelectedIndex,
DropDownListMonth.SelectedIndex,
DropDownListYear.SelectedIndex);
In backend dateofjoining type as datetime. Pls modify my above code.
Thanks, Sumit