YouTip LogoYouTip

Jstl Format Parsedate Tag

# Tag [![Image 3: JSP Standard Tag Library](#)JSP Standard Tag Library](#) The `` tag is used to parse a date. ### Syntax Format <fmt:parseDate value="" type="" dateStyle="" timeStyle="" pattern="" timeZone="" parseLocale="" var="" scope=""/> ### Attributes The `` tag has the following attributes: | Attribute | Description | Required | Default Value | | --- | --- | --- | --- | | value | The date to be parsed | Yes | None | | type | DATE, TIME, or BOTH | No | date | | dateStyle | FULL, LONG, MEDIUM, SHORT, or DEFAULT | No | default | | timeStyle | FULL, LONG, MEDIUM, SHORT, or DEFAULT | No | default | | pattern | Custom format pattern | No | None | | timeZone | The time zone for the date | No | Default time zone | | var | Variable name to store the parsed date | No | Displayed on page | | scope | Scope of the variable storing the parsed date | No | page | The attributes set the desired output format for the date. * * * ## Example JSTL fmt:parseDate Tag

Date Parsing:

Parsed Date:

The output of the above example is: Date Parsing: Parsed Date: Tue Oct 20 00:00:00 CST 2015 * * JSP Standard Tag Library](#)
← Jstl Format Bundle TagJstl Format Formatdate Tag β†’