I used <#setting date_format="mm/dd/yyyy"/> to set my date format. However, When I print the dates, it always print 00/xx/xxxx, 0th month.
mm
means minutes, not months in year; use MM
for that: MM/dd/yyyy
. See: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.