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
NameRequiredRequest-timeTypeDescription
valuetruetruejava.lang.StringDate and/or time to be formatted.
typefalsetruejava.lang.StringSpecifies whether the time, the date, or both the time and date components of the given date are to be formatted.
dateStylefalsetruejava.lang.StringPredefined 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.
timeStylefalsetruejava.lang.StringPredefined 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.
patternfalsetruejava.lang.StringCustom formatting style for dates and times.
timeZonefalsetruejava.lang.StringTime zone in which to represent the formatted time.
varfalsefalsejava.lang.StringName of the exported scoped variable which stores the formatted result as a String.
scopefalsefalsejava.lang.StringScope of var.

Variables
No Variables Defined.


Comments to: jstl-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.