Hi,
I have the problem with getting datepicker to work. it said invalid format, please advise
shared/_Layout.cshtml
<head>
<script src="@Url.Content("~/Scripts/cultures/kendo.culture.en-AU.min.js")" type="text/javascript"></script>
<script type=”text/javascript”>
//set the Kendo UI culture
kendo.culture("en-AU");
</script>
</head>
Date.cshtml
@model DateTime?
@(Html.Kendo().DatePickerFor(m => m)
.Format("d/MM/yyyy")
//.Value(Model.HasValue ? Model.Value.ToShortDateString() : string.Empty)
.Value(Model)
)
I have the problem with getting datepicker to work. it said invalid format, please advise
shared/_Layout.cshtml
<head>
<script src="@Url.Content("~/Scripts/cultures/kendo.culture.en-AU.min.js")" type="text/javascript"></script>
<script type=”text/javascript”>
//set the Kendo UI culture
kendo.culture("en-AU");
</script>
</head>
Date.cshtml
@model DateTime?
@(Html.Kendo().DatePickerFor(m => m)
.Format("d/MM/yyyy")
//.Value(Model.HasValue ? Model.Value.ToShortDateString() : string.Empty)
.Value(Model)
)