Format date to current time zone

Showing results for 
Search instead for 
Did you mean: 
Active Member

Format date to current time zone



Let's say I have a Java "Date" object. I would like to convert/format it  to the current time zone of my Alfresco service.

How can  I achieve this ? I know Alfresco does it to display the date in formulary.

For example, I have a date property set to 3 pm (UTC), the system will display (17:00:00) (5pm, french time).

I would like to get the same result but with Java.

Any idea ? 

Thank you