Changing Date Format

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2010 01:22 PM
I notice that the default for Alfresco 3.3 is a 24 hour clock format. Some of my users may find this a little confusing. I was wondering if there was a way to change the date/time format so that a 12 hour am/pm clock appears.
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2010 03:49 PM
you have
# Date Pattern
date_pattern=d MMMM yyyy
date_time_pattern=d MMMM yyyy HH:mm
time_pattern=HH:mm
in webclient.properties file, so just change to what you want for instance
date_pattern=d MMMM yyyy
date_time_pattern=d MMMM yyyy H:mm a
time_pattern=H:mm a
you have examples http://www.exampledepot.com/egs/java.text/FormatTime.html, so try it out.
# Date Pattern
date_pattern=d MMMM yyyy
date_time_pattern=d MMMM yyyy HH:mm
time_pattern=HH:mm
in webclient.properties file, so just change to what you want for instance
date_pattern=d MMMM yyyy
date_time_pattern=d MMMM yyyy H:mm a
time_pattern=H:mm a
you have examples http://www.exampledepot.com/egs/java.text/FormatTime.html, so try it out.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2010 01:29 AM
Changing webclient.properties had no affect on my system. I still get Day/Month/Year 24H when I want Month/Day/Year 12h for all dates in Share. I can't figure out where else to change this. Should I place it in Global.properties?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2010 11:07 AM
Found how to change Share dates in C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\messages
common.properties and slingshot.properties.
Although that does not change the date format for data lists. When I select the yahoo.widget calendar date picker for my data lists it still is entering the date field with dd/mm/yy. Funny action since the default yahoo.widget settings are american standard mm/dd/yy. The way I would like it and the way I have it set in common.properties and slingshot.properties.
Does anyone know how to change the date field in the forms for data lists to mm/dd/yy?
Thanks!
common.properties and slingshot.properties.
Although that does not change the date format for data lists. When I select the yahoo.widget calendar date picker for my data lists it still is entering the date field with dd/mm/yy. Funny action since the default yahoo.widget settings are american standard mm/dd/yy. The way I would like it and the way I have it set in common.properties and slingshot.properties.
Does anyone know how to change the date field in the forms for data lists to mm/dd/yy?
Thanks!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2012 10:00 PM
The date for the date picker (for the English local) is controlled by
c:\alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form\form.get_en.properties
Copy this file over to
C:\Alfresco\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\form\ (make the directory if you do not already have an extensions form path)
Modify below (from d/M/yyyy and DD/MM/YYYY) to:
form.control.date-picker.entry.date.format=M/d/yyyy
form.control.date-picker.display.date.format=MM/DD/YYYY
(This works for version 4.0+ - I do not know about earlier versions)
c:\alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form\form.get_en.properties
Copy this file over to
C:\Alfresco\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\form\ (make the directory if you do not already have an extensions form path)
Modify below (from d/M/yyyy and DD/MM/YYYY) to:
form.control.date-picker.entry.date.format=M/d/yyyy
form.control.date-picker.display.date.format=MM/DD/YYYY
(This works for version 4.0+ - I do not know about earlier versions)
