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

Attributename

Java type

Dynamic valueaccepted

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 java.util.TimeZone for details

Example

<fmt:timeZone value="America/Los Angeles">
  <fmt:formatDate value="${now}" type="both" />
</fmt:timeZone>

Get JavaServer Pages, Second 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.