Hi there
The customer is asking for date/time formats such as 01 Jun 2014 10:20
So I specify this in the view:
@(Html.Kendo().DateTimePickerFor(m => m.Baby.DateOfBirth).Format("dd MMM yyyy HH:mm").TimeFormat("HH:mm").HtmlAttributes(new { style = "width:170px"}).Max(DateTime.Now)))
and this in the model:
public DateTime? DateOfBirth { get; set; }
Now when I select a date and time from the datepicker I see the value: "09 Jan 2014 02:00" which seems fine, but when I tab off I get the error " The field Date of Birth must be a date."
Any idea why?
The customer is asking for date/time formats such as 01 Jun 2014 10:20
So I specify this in the view:
@(Html.Kendo().DateTimePickerFor(m => m.Baby.DateOfBirth).Format("dd MMM yyyy HH:mm").TimeFormat("HH:mm").HtmlAttributes(new { style = "width:170px"}).Max(DateTime.Now)))
and this in the model:
public DateTime? DateOfBirth { get; set; }
Now when I select a date and time from the datepicker I see the value: "09 Jan 2014 02:00" which seems fine, but when I tab off I get the error " The field Date of Birth must be a date."
Any idea why?