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

DatePicker Wrong date format

2 Answers 364 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 1
Fabien asked on 14 Dec 2012, 06:12 AM
Hi there,

I got some issue with the kendo datepicker component, he generate wrong date format, my culture is set to "fr-FR", if i use then Kendo Html Helper to generate the component i got a wrong date format, exemple :

@(Html.Kendo().DatePicker().Name("Test").Value(DateTime.Now))
But if i manually instanciate the compenent with javascript like this :
<input name="Test" id="Test" value="@DateTime.Now" />
<script type="text/javascript">
    $(document).ready(function () {
        $('#DebutJ').kendoDatePicker();
    });
</script>
it's correctly display the date, i only have this issue in one area of my MVC app,

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 14 Dec 2012, 10:02 AM
Hello Christophe,

 
Please verify whether the "kendo.cultures.fr-FR.min.js" file is registered on the page and Kendo is set to use that culture. When everything is set correctly, the DatePicker works as expected. Check this screencast for more information.

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Fabien
Top achievements
Rank 1
answered on 16 Dec 2012, 10:23 PM
Hi,

Thanks for the quick reply.

Problem solved.
Tags
Date/Time Pickers
Asked by
Fabien
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Fabien
Top achievements
Rank 1
Share this question
or