cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Date Format

toadbrother
Champ on-the-rise
Champ on-the-rise
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.
4 REPLIES 4

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
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.

mthomas
Champ in-the-making
Champ in-the-making
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?

mthomas
Champ in-the-making
Champ in-the-making
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!

callen
Champ in-the-making
Champ in-the-making
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)