Michel, thank you for your answer. For the users who cannot login to the link Michel refers to, these are the parsing commands for date/time:
Format to day-month-year ("08-06-2008") use:
formatDateTime($object/Date1,'dd-MM-yyyy')
Format to day of week, day month year, time, timezone ('su, 8 jun 2008 10:12:01 +0200') use:
formatDateTime($object/Date1,'EEE, d MMM yyyy HH:mm:ss Z')
Format to full day of week ('sunday') use:
formatDateTime($object/Date1,'EEEE')
You check this answer for more information on converting date time attributes
You should ask a Java programmer to write your preferred annotation in Java.