DatePicker Wrong date format

3 posts, 0 answers
  1. Fabien
    Fabien avatar
    1 posts
    Member since:
    May 2011

    Posted 14 Dec 2012 Link to this post

    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. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 14 Dec 2012 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Fabien
    Fabien avatar
    1 posts
    Member since:
    May 2011

    Posted 16 Dec 2012 Link to this post

    Hi,

    Thanks for the quick reply.

    Problem solved.
Back to Top