Hello Guys.
Im trying to use the Kendo Date Picker (Not DateTimePicker)
I use it in ASP.Net MVC 4 with Razor 2. In my Model it looks like this :
In View:
When i post the Form it show a Validation Failure but the Date is valid.
I am use the swiss/german format dd.MM.yyyy i am gone to be crazy. Since 4 Hourse i am trying it to fixt this -_-''
So please help me.
Im trying to use the Kendo Date Picker (Not DateTimePicker)
I use it in ASP.Net MVC 4 with Razor 2. In my Model it looks like this :
[Required(ErrorMessageResourceName = "GeburtstagFehlt", ErrorMessageResourceType = typeof(Resources.Shared.ValidationMessages))] [Display(Name = "Geburtstag", ResourceType = typeof(Resources.Models.Kontakt))] [DataType(DataType.Date, ErrorMessageResourceName = "GeburtstagUngueltig", ErrorMessageResourceType = typeof(Resources.Shared.ValidationMessages))] public DateTime Geburtstag { get; set; }@model DateTime?@(Html.Kendo().DatePickerFor(m => m))
When i post the Form it show a Validation Failure but the Date is valid.
I am use the swiss/german format dd.MM.yyyy i am gone to be crazy. Since 4 Hourse i am trying it to fixt this -_-''
So please help me.