JSTL fmt
Tag formatDate


Formats a date and/or time using the supplied styles and pattern


Tag Information
Tag Classorg.apache.taglibs.standard.tag.rt.fmt.FormatDateTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
value
Date and/or time to be formatted.
 
Required: true
Request-time: true
Type: java.lang.String
type
Specifies whether the time, the date, or both the time and date components of the given date are to be formatted.
 
Required: false
Request-time: true
Type: java.lang.String
dateStyle
Predefined formatting style for dates. Follows the semantics defined in class java.text.DateFormat. Applied only when formatting a date or both a date and time (i.e. if type is missing or is equal to "date" or "both"); ignored otherwise.
 
Required: false
Request-time: true
Type: java.lang.String
timeStyle
Predefined formatting style for times. Follows the semantics defined in class java.text.DateFormat. Applied only when formatting a time or both a date and time (i.e. if type is equal to "time" or "both"); ignored otherwise.
 
Required: false
Request-time: true
Type: java.lang.String
pattern
Custom formatting style for dates and times.
 
Required: false
Request-time: true
Type: java.lang.String
timeZone
Time zone in which to represent the formatted time.
 
Required: false
Request-time: true
Type: java.lang.String
var
Name of the exported scoped variable which stores the formatted result as a String.
 
Required: false
Request-time: false
Type: java.lang.String
scope
Scope of var.
 
Required: false
Request-time: false
Type: java.lang.String

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.