Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MK 426 posts 902 karma points
    Jan 15, 2013 @ 10:37
    MK
    0

    Date picker format

    Hi there,

    How do one can change the date format?

    Regards,

    mkariti

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 15, 2013 @ 10:39
    Tim Geyssens
    0

    Hi,

    The format is set by the current culture so changing that (by assigning a langauge to a node structure) should take care of it

  • MK 426 posts 902 karma points
    Jan 15, 2013 @ 10:42
    MK
    0

    Hi Tim,

    Again, Many thanks for your fast reply!

    I was aware of that but for some reason my culture is set to uk and In the front end I still get the usa format?!

    It is multiple language website on both languages I get the usa format no matter the culture.

    Regards,

    mkariti

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 15, 2013 @ 10:43
    Tim Geyssens
    100

    Or if you are using the razor macro you could also customize \Umbraco\plugins\umbracoContour\Views\SCripts.cs

    And update 

    <script type="text/javascript">
           var contourDateFormat = "@Html.ConvertDateFormat()";
        </script>

    to your needs

  • MK 426 posts 902 karma points
    Jan 15, 2013 @ 10:48
    MK
    0

    Excellent!

    I'm using the Razor macro.

    Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies