Copied to clipboard

Flag this post as spam?

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


  • Manue 10 posts 31 karma points
    Oct 10, 2012 @ 17:24
    Manue
    0

    datetimepicker

    Hi, i have modified datetimepicker.cs to get it in italian format. I have modified the property DateTime and OnPreRender and the js.

    Now if i save a document with date field, the date is saved but after i click on save the field is empty.

    If i click again on the node, the field is filled.

    Can someone help me?

    Thanks in advance

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 10, 2012 @ 18:24
    Tom Fulton
    0

    Hi,

    Have you tried using this method of changing the date format?  Might be easier than modifying the datatype.  http://our.umbraco.org/forum/developers/extending-umbraco/8268-Change-date-picker-format-in-Umbraco

    -Tom

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 10, 2012 @ 18:26
    Tom Fulton
    0

    Oh, sorry, I think that only changes some things in Umbraco but maybe not the datepicker.  If you can post your updated code, maybe we can take a look?

  • Manue 10 posts 31 karma points
    Oct 11, 2012 @ 09:06
    Manue
    1

    1. Edit umbraco_client\DateTimePicker\umbDateTimePicker.js: change dateformat and add regional settings

    2. Add in umbraco_client\DateTimePicker\umbDateTimePicker.js the file (italian in this case) jquery.ui.datepicker-it.js
    3. Edit jquery.ui.datepicker-it.js: change the mask format

    + "jQuery('#" + m_DateTextBox.ClientID + "').mask('"+ (this.ShowTime ? "99-99-9999 99:99" : "99-99-9999") +"');"

    and add the dependency [ClientDependency(ClientDependencyType.Javascript, "DateTimePicker/jquery.ui.datepicker-it.js", "UmbracoClient")]

    I tried to change also DateTime format in this file

Please Sign in or register to post replies

Write your reply to:

Draft