In JSTL, the role of formatting tag is to specify the type of format that represents date and time. The following syntax represent the URL of formatting tag: –

Formatting tags

These are some commonly used formatting tags: –

  • <fmt:parseNumber>: –  This tag is used to parse the string on the basis of attribute associate with it.
  • <fmt:parseDate>: – This tag is used to parse the string of a date and time.
  • <fmt:formatDate>: – This tag handles the date in the various format.
  • <fmt:message>: – This tag is used to display the internationalized message.
  • <fmt:setTimeZone>: – This tag specifies the type of time zone.

Example of JSTL Format Tag

This is a simple example of JSTL format tag.



Pin It on Pinterest

Share This