Copied to clipboard

Flag this post as spam?

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


  • Thomas 18 posts 39 karma points
    Feb 08, 2010 @ 14:55
    Thomas
    1

    date format in umbraco contour datepicker field (d/M/yyyy)

    Hi,

    I wonder if someone can help me with a problem that I have been attempting to fix for a while & just cant seem to resolve it.

    Im using umbraco contour and have a problem with the datepicker format.

    When a date is selected it renders in US format (M/d/yyyy),  I would like to convert it to GB (d/M/yyyy).

    In the sourcecode of the HTML page that has the contour form on I can see what I think is the code I need to change to achieve this but cant for the life of me locate where to make the change within umbraco.

    Can anyone please help me out?

    Ive found a similar post: http://our.umbraco.org/forum/developers/xslt/6809-Date-format-in-umbraco-datepicker-field but setting the language for the site doesnt help either.

    Thanks,

    Tom

    Sys.Application.add_init(function() {
    $create(AjaxControlToolkit.CalendarBehavior, {"format":"M/d/yyyy","id":"ctl00_ctl00_ctl00_ctl00_ContentPlaceHolderDefault_MainContent_pageContent_ctl03_RenderForm_3_rpFieldsets_ctl01_rpFields_ctl02_36e8d303-e46a-44f9-bfed-a530187f0960_ce"}, null, null, $get("ctl00_ctl00_ctl00_ctl00_ContentPlaceHolderDefault_MainContent_pageContent_ctl03_RenderForm_3_rpFieldsets_ctl01_rpFields_ctl02_36e8d303-e46a-44f9-bfed-a530187f0960_tb"));
    });
    Sys.Application.add_init(function() {
    $create(AjaxControlToolkit.CalendarBehavior, {"format":"M/d/yyyy","id":"ctl00_ctl00_ctl00_ctl00_ContentPlaceHolderDefault_MainContent_pageContent_ctl03_RenderForm_3_rpFieldsets_ctl02_rpFields_ctl02_40c54ea1-b7b6-4116-aa74-0ad42d1ab42b_ce"}, null, null, $get("ctl00_ctl00_ctl00_ctl00_ContentPlaceHolderDefault_MainContent_pageContent_ctl03_RenderForm_3_rpFieldsets_ctl02_rpFields_ctl02_40c54ea1-b7b6-4116-aa74-0ad42d1ab42b_tb"));
    });
  • Josh Reid 182 posts 257 karma points
    Feb 15, 2010 @ 05:57
    Josh Reid
    0

    Along these lines...

    I am creating a node from the contour record on approval and when the node data is populated the DatePicker data will not populate a 'Date Picker with time' field in the docType?

    Any thoughts or anyone encountered this before?

    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