cancel
Showing results for 
Search instead for 
Did you mean: 

Date picker control

jenniferh
Champ in-the-making
Champ in-the-making
Hi,

I'm not sure if this is the best place to ask this question but since I'm working with records management I thought I'd try here first. I have a form in share that uses a date picker control. The date is displaying in the edit field in UK English instead of US English. For example, Jan 13, 2012 displays as 13/1/2012. I need it to display as 1/13/2012. I was able to "fix" this by overriding the form.get_en.properties under /WEB-Inf/classes/alfresco/site-webscripts/org/alfresco/components/form. That is, I created a site-webscripts/org/alfresco/components/form directory structure under my extensions/web-extension folder and copied the form.get_en.properties file there. Then I changed the following two properties:

form.control.date-picker.entry.date.format
form.control.date-picker.display.date.format

This worked but I am wondering if there is a better way to do it (i.e., just overriding those two properties without having to copy the contents of the entire file). Also, I thought that US English was supposed to be the default so I'm confused as to why the date picker control is displaying UK English.
5 REPLIES 5

abhashree
Champ in-the-making
Champ in-the-making
Hi Jenniferh,

As per my knowledge you had done it a right way.
If you want to override some contents of a file then only overriding the required properties without overriding entire properties of the file will be effective .

Thanks
Abhashree

jenniferh
Champ in-the-making
Champ in-the-making
Hi Abhashree,

Thanks for your reply, but I am still confused. Your reply suggests there is a way to override only those two properties. Can you explain how to do this without having to copy the contents of the entire file?

Thanks,
Jennifer

sharifu
Confirmed Champ
Confirmed Champ
I have done this but it is not working for me

My default is set to UK English and i wan to change it to US English format for my custom model content that I created, so the properties with d:date in my model should display in US format and not UK.

jenniferh
Champ in-the-making
Champ in-the-making
If you changed the properties in the .war file you may need to delete your tmp and work folders in your server directory before you can see the change.

sharifu
Confirmed Champ
Confirmed Champ
Don''t understand what you mean