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
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
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
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?
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
is working on a reply...