简体   繁体   中英

In NetSuite Advanced PDF Template, I got 00/01/2017, 0th moth, when I set date format to mm/dd/yyyy

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM