The <dotj:date> tag can be used to display date/time values in a great number of ways. You can supply the value
of the date or time via the tag's body, which can be in just about any date format.
The tag also fully supports internationalization.
Example
Date/Time
Format
Result
Example 1
Current Date
MM/dd/yyyy
03/10/2010
Example 2
Current Date
MMMM dd, yyyy
March 10, 2010
Example 3
Current Date
EEEE, MMMM dd, yyyy
Wednesday, March 10, 2010
Example 4
09/15/2032
MMMM dd, yyyy
September 15, 2032
Example 5
Current Time
hh:mm:ss a
09:57:17 PM
Example 6
Current Time
HH:mm:ss
21:57:17
Example 7
Current Time
hh:mm:ss a z
09:57:17 PM EST
Example 8
09:45:32 AM
hh:mm:ss a
09:45:32 AM
Example 9
Current Date and Time
MM/dd/yyyy hh:mm:ss a z
03/10/2010 09:57:17 PM EST
Example 10
Current Date - FRENCH Locale
EEEE, MMMM dd, yyyy
mercredi, mars 10, 2010
Example 11
Current Date - Spanish, Mexico
EEEE, MMMM dd, yyyy
miércoles, marzo 10, 2010
Example 12
"09/15/2032 01:13:45"
EEEE, MMMM dd, yyyy hh:mm:ss a z
Wednesday, September 15, 2032 01:13:45 AM EDT
Example 13
Last Modified Date (of this file)
EEEE, MMMM dd, yyyy hh:mm:ss a z
Tuesday, February 10, 2004 02:39:12 AM EST
Example 14
One thousand Milliseconds since Jan. 01, 1970 00:00:00 GMT