How to format date in JSP?
Answers
Answered by
0
We create a date object using the <jsp:useBean> taglib. To format the date we use the <fmt:formatDate> taglib. We assign the value attribute to the date object, set the type attribute as date and define the pattern how the date will be formatted.
Similar questions
Science,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Hindi,
1 year ago
Science,
1 year ago