I'm using the rad date picker control. I want the entered date to save in the database as MM/DD/YYYY.
In html I have:
I am using this code to get the value entered into the picker:
In html I have:
<DateInput runat="server" DateFormat="MM/dd/yyyy" DisplayDateFormat="MM/dd/yyyy">It displays in MM/DD/YYYY, but will only save as M/D/YYY.
I am using this code to get the value entered into the picker:
DatePicker.SelectedDate.Value.ToShortDateString();