This question is locked. New answers and comments are not allowed.
I am developing a MVC 2 web application and the view contains two date pickers with start and end date.
The problem is like I want them show dd/MM/yyyy format.
I have put the code
and
but showing invalid date error validation message which i have set.
The problem is like I want them show dd/MM/yyyy format.
I have put the code
<%
= Html.Telerik().DatePicker().Name("Detail.StartDate").Value(DateTime.Now).MinDate(DateTime.Now.Subtract(new TimeSpan(0, 1, 0))).Format("dd/MM/yyyy")%>
<%
= Html.ValidationMessageFor(model => model.Detail.StartDate)%>
and
<%
= Html.Telerik().DatePicker().Name("Detail.EndDate").Value(DateTime.Now).MinDate(DateTime.Now.Subtract(new TimeSpan(0, 1, 0))).Format("dd/MM/yyyy")%>
<%
= Html.ValidationMessageFor(model => model.Detail.EndDate)%>
but showing invalid date error validation message which i have set.