This is a migrated thread and some comments may be shown as answers.

Set date format to dd MMM yyyy in Custom Editor Template

1 Answer 103 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 13 Jan 2014, 07:19 PM
Hi,

Can we change the format in Add/Edit Scheduler?
I have a scheduler with Custom Editor Template with start and date template using DatePicker as following.
@(Html.Kendo().DatePickerFor(model => model.Start)
                    .Value(DateTime.Today)
                    .Format("dd MMM yyyy"))

@(Html.Kendo().DatePickerFor(model => model.End)
                .Value(DateTime.Today)
                .Format("dd MMM yyyy"))

But everytime I tried to save the New Scheduler, it always said "The field Start must be a date/ The field End must be a date".

Is there any way to change the format?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 14 Jan 2014, 09:23 AM
Hi Benjamin,

From the provided information it seems that the culture on the server and the client side is different which is invalid configuration. Please check the following help topic which contains more information about how to setup the project correctly:


Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or