This is a migrated thread and some comments may be shown as answers.
The Default date format is not the same for the Kendo grid and the datetimepicker component
2 Answers 66 Views
This is a migrated thread and some comments may be shown as answers.
Peter Beyer
Top achievements
Rank 1
Peter Beyer asked on 16 Dec 2014, 12:19 PM
We try to use Kendo UI localization, but it gives us different result.
If we show the date in the grid, it give us a full GMT formattet datetime display. And if we are using the datetimepicker, it is actually using the mashines localization.

Are we doing something wrong, or is it a bug in Kendo, so we need to hardcode the datetime format ?

(Se pictures)

Kind Regards


Peter Beyer
CRM-Byggefakta

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 18 Dec 2014, 08:53 AM
Hello Peter,

In general, Kendo UI Grid does not format dates automatically. If you would like to format the date then you will need to define the format option of the column. Note that the defined format will honor the used Kendo
culture.

With regards to the other question, Kendo UI DatePicker is a specially designed widget that works with dates and honors the specified Kendo culture. It has support for multiple parse date formats defined with parseFormats option. These 'functionality are provided by the widget and are not available when a regular HTML input element is used. If you would like to use regular input element, then you will need to implement the date support manually, as the MVVM value binding does not provide built-in support for it.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Peter Beyer
Top achievements
Rank 1
answered on 18 Dec 2014, 01:50 PM
Okay thank you

Regards


Peter Beyer
CRM-Byggefakta
Asked by
Peter Beyer
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Peter Beyer
Top achievements
Rank 1
Share this question
or