%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
JSTL: Formatting/I18N Support -- Date and Time Example
Formatting Dates and Times
- Formatting current date as "GMT":
- Formatting current date as "GMT+1:00", and parsing
its date and time components:
Parsed date:
Parsed time:
- Parsing SHORT version of current time in different time zones:
(parsed in "GMT")
(parsed in "GMT+1:00")
(parsed in "GMT+3:00")
(parsed in "PST")
- Parsing FULL version of current time in different time zones (should not make any difference):
(parsed in "GMT")
(parsed in "GMT+1:00")
(parsed in "GMT+3:00")
(parsed in "PST")