The JSTL Formatting Tag is used for parsing the dates.
Syntax:
fmt:parseDate tag attributes:
Attribute | Description | Required |
value | Date value to read or parse. | Yes |
type | DATE, TIME, or BOTH. | No |
dateStyle | FULL, LONG, MEDIUM, SHORT, DEFAULT. | No |
timeStyle | FULL, LONG, MEDIUM, SHORT, DEFAULT. | No |
parseLocale | Locale to use when parsing the date. | No |
pattern | It specify the custom parsing pattern. | No |
timeZone | It specify the time zone of the parsed date. | No |
var | It specify the name of the variable to store the parsed date. | No |
scope | It specify the scope of the variable to store the formatted date. | No |
Example:
test.jsp
web.xml
No comments:
Post a Comment