Jakarta DATETIME Taglib Example


<%@ page session="false" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/datetime-1.0" prefix="dt" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0" prefix="req" %>

You selected the time zone:

The local current time is:

Setting the time zone for this session:

The current time at

The current time at in a different format:

yyyy MM dd Parse the date you selected using the parse tag:



The date you selected was: