JSTL fmt:timeZone Formatting Tag

The JSTL <fmt:timeZone> Formatting Tag is used to specify the time zone.

Syntax:

<fmt:timeZone value=”timeZone” />

fmt:timeZone tag attributes:

Attribute Description Required
value It specify the time zone to apply to the body. Yes

Example:

test.jsp

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


	
		fmt:timeZone JSTL formatting tag example
	
	
	  
	   
			  

web.xml


	
  
          test.jsp
  	


Output:

jsp example 50
 
Download this example.
 
Next Topic: JSTL fmt:setTimeZone Formatting Tag with example.
Previous Topic: JSTL fmt:setLocale Formatting Tag with example.