formatDate
Formats a Date value using a locale. A style or a pattern such as 'YYYY MMM ddd' is specified. If the value is null then the default text is used. If no locale is specified then the parent locale tag is used. If no parent locale tag exists then the locale is taken from the current request. If still no locale is found then the current JVM locale is used.
Library
i18n
Tag class
org.apache.taglibs.i18n.FormatDateTag
Attributes
Table 7‑7 lists and describes the attributes for formatDate.
Table 7‑7 Attributes for formatDate
Attribute | Required | Description |
defaultText | No | Default value. |
locale | No | Current user’s locale, such as en_US, as in <context root>\Web‑inf\localemap.xml. |
pattern | No | Date formatting string. Do not use with style. |
style | No | Short, medium, long, or full. Do not use with pattern. |
value | No | Date value. |
Used in
<context root>\private\channels\channelnoticelistcontent.jsp
<context root>\private\filesfolders\filedetailcontent.jsp
<context root>\private\jobs\completedjob.jsp
<context root>\private\jobs\getjobdetailscontent.jsp
<context root>\private\jobs\pendingjob.jsp
<context root>\private\jobs\runningjob.jsp
<context root>\private\jobs\scheduledjob.jsp