Name
<fmt:timeZone>
Synopsis
The
<fmt:timeZone>
action establishes the time zone for actions in its body.
Syntax
<fmt:TimeZone value="timeZone
">JSP elements
</fmt:timeZone>
Attributes
Attribute name |
Java type |
Dynamic value accepted |
Description |
value |
String or java.util.TimeZone |
Yes |
The time zone. If specified as a String, it’s an
abbreviation, a name, or a GMT offset; see
|
Example
<fmt:timeZone value="America/Los Angeles"> <fmt:formatDate value="${now}" type="both" /> </fmt:timeZone>
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.