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

DatePicker not setting culture

1 Answer 236 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 01 Apr 2015, 03:26 PM
Hi,

I am trying to change the culture used by the DatePicker from en-US to en-GB as I want my dates to be dd/MM/yyyy. However, it is not working.

Here's a dojo:
http://dojo.telerik.com/@bhaidar/iluvo

Thanks

1 Answer, 1 is accepted

Sort by
0
Eric Kuijpers
Top achievements
Rank 1
answered on 03 Apr 2015, 07:02 AM
Running the dojo from Chrome(36) or IE 11 results in april 16th 2015 being displayed as 16/04/2015, which seems to be the desired result.

Both however show the 'DatePicker1 is not a valid date' message. 

Adding the following lines seem to correct this situation :

<script src="http://cdn.kendostatic.com/2015.1.318/js/cultures/kendo.culture.en-GB.min.js"></script>

$(function() {
       kendo.culture("en-GB");
Tags
Date/Time Pickers
Asked by
Bilal
Top achievements
Rank 2
Answers by
Eric Kuijpers
Top achievements
Rank 1
Share this question
or