Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
MVC for DatePicker - problem getting selected date
posted

I am having problems retrieving the value of the Datepicker

Model:

 public DateTime Birthdate { get; set; }

View:

@(Html.Infragistics()
.DatePickerFor(m => m.Birthdate)
.ID("datePicker")
.Render()
)

Even though I select a date from the dropdown, the date always reverts back to 1/1/0001

How can I update the Birthdate with the value selected?

Thanks