Format of date in Alfresco Forms

cancel
Showing results for 
Search instead for 
Did you mean: 
marcog
Partner

Format of date in Alfresco Forms

Good afternoon.

We default to custom model forms or date format is in "dd/mm/yyyy" and we need to change it to "yyyy-mm-dd".

I am using o Alfresco 7.1 dockerized with docker-compose.yml. The Server is with the timezone America/Montevideo and in Spanish the installation of the OS.

Also added user.region and user.country not docker-compose.

How do I make this change in the entire Alfresco environment?

Thanks

1 Reply
sanjaybandhniya
Intermediate

Re: Format of date in Alfresco Forms

You need to override some properties.

 

If you are using SDK then share side there will be properties file 

share-jar\src\main\resources\alfresco\web-extension\messages\**-share.properties

 

You need to modify below properties.

 

## Date Formats
#Used client side (uses Alfresco.util.formatDate)
date-format.default=mm/dd/yyyy HH:MM:ss
date-format.defaultDateOnly=mm/dd/yy
date-format.shortDate=d/m/yy
date-format.mediumDate=d mmm, yyyy
date-format.mediumDateNoYear=d mmm
date-format.longDate=dd mmmm, yyyy
date-format.longDateNoYear=dd mmmm
date-format.fullDate=dddd, d mmmm, yyyy
date-format.fullDateTime=dddd, d mmmm, yyyy 'at' h:MM TT

 

This way I have changed.(Note: This is changed property)