<fmt:formatDate> label output format: one day in the D month. One-digit date has no leading zeros. DD a day of the month. A one-digit date has a leading zero. The abbreviated name of the day of the DDD week , defined in Abbreviateddaynames. dddd The full name of the day of the week, as defined in DayNames . M -month number. One-digit month has no leading zeros. MM Month number. One-digit month has a leading zero. abbreviated name of the MMM month, defined in AbbreviatedMonthNames . the full name of the MMMM month, as defined in MonthNames . y does not contain the year of the era. If the year that does not contain an era is less than 10, the year is displayed without leading zeros. yy does not contain the year of the era. If the year that does not contain an era is less than 10, the year with leading zeros is displayed. The yyyy includes the four-digit year of the era. GG period or era. If the date to be formatted does not have an associated period or era string, the pattern is ignored. h The Hour of the hour system. One-digit hours do not have leading zeros. From 1 to 12, minutes in the afternoon range: 01:00 am~12:59am hh hour-hour system. One-digit hours have leading zeros. h Hour -hour system. One-digit hours do not have leading zeros. From 0 to 23, Range: 00:00 am~23:59am HH hour -hour. One-digit hours have leading zeros. m minutes. A single-digit number of minutes does not have a leading zero. mm minutes. A single-digit number of minutes has a leading zero. s seconds. The number of seconds in a single digit does not have a leading zero. SS seconds. The number of seconds of one digit has a leading zero.
Example: index.jsp
{type:both} <fmt:formatdate value= "<%=new Date ()%>" type= "both"/><!--2011-3-30 9:41:21-- > <br/> {type:date} <fmt:formatdate value= "<%=new date ()%>" type= "date"/><!--201 1-3-30-<br/> {type:time} <fmt:formatdate value= "<%=new Date ()%>" type= "Time"/>&L t;! --9:44:44--<br/> {type:date, datestyle:default} <fmt:formatdate value= "<%=new date ()%&G t; "type=" date "datestyle=" Default "/><!--2011-3-30--<br/> {type:date, datestyle:short} <fmt:formatdate value= "<%=new date ()%>" type= "date" datestyle= "short"/><!--11-3-30-<br/> {type:date, datestyle:medium} <fmt:formatdate value= "<%=new date ()%>" type= "date" dateStyle= " Medium "/><!--2011-3-30-<br/> {type:date, datestyle:long} <fmt:formatdate value=" & Lt;%=new date ()%> "type=" date "datestyle= "Long"/><!--March 30, 2011--<br/> {type:date, datestyle:full} <fmt:formatdate Value= "<%=new date ()%>" type= "date" datestyle= "full"/><!--Wednesday, March 30, 2011--<br/> {type:time, Timestyle:default} <fmt:formatdate value= "<%=new Date ()%>" type= "Time" timestyle= "default"/ ><!--10:01:32--<br/> {type:time, timestyle:short} <fmt:formatdate value= "<%=new D Ate ()%> "type=" Time "timestyle=" short "/><!--morning 10:01-<br/> {type:time, timestyle:medium} <fmt:formatdate value= "<%=new Date ()%>" type= "Time" timestyle= "medium"/><!--10:01:32-- <br/> {type:time, timestyle:long} <fmt:formatdate value= "<%=new Date ()%>" type= "Time" timestyle= "Long"/><!--10:01 A.M. 32 seconds-<br/> {type:time, timestyle:full} <fmt: FormatDate value= "<%=new Date ()%>" type= "Time" timestYle= "full"/><!--10:01 A.M. 32 sec CST-<br/> {type:both, pattern:eeee, MMMM D, yyyy HH:mm:ss Z}&NBSP;&NB Sp;<fmt:formatdate value= "<%=new Date ()%>" type= "both" pattern= "eeee, MMMM D, yyyy HH:mm:ss Z"/><!--Wednesday, March 10:01:32 +0800--<br/> {type:both, pattern:d MMM yy, h:m:s a zzzz} <fmt:formatd Ate value= "<%=new Date ()%>" type= "both" pattern= "D MMM yy, h:m:s a zzzz"/><!--303 months 11, 10:1:32 a.m. China standard Time-- > <br/> {pattern:dd/mm/yyyy hh:mm aa}} <fmt:formatdate value= "<%=new SimpleDateFormat (" Yyyy-mm-dd HH:mm:ss "). Parse (" 2011-3-30 13:12:12 ")%>" pattern= "dd/mm/yyyy hh:mm aa"/><!--30/03/2011 13:12 pm- <br/> {pattern:dd/mm/yyyy hh:mm aa} <fmt:formatdate value= "<%=new SimpleDateFormat (" Yyyy-mm-dd HH:mm:ss "). Parse (" 2011-3-30 13:12:12 ")%>" pattern= "dd/mm/yyyy hh:mm aa"/><!--30/03/2011 01:12 pm- -
Fmt:formatdate the output format of the label