[英]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. 我使用<#setting date_format =“ mm / dd / yyyy” />设置日期格式。 However, When I print the dates, it always print 00/xx/xxxx, 0th month. 但是,当我打印日期时,它总是打印00 / xx / xxxx,第0个月。
mm
means minutes, not months in year; mm
表示分钟,而不是一年中的几个月; use MM
for that: MM/dd/yyyy
. 为此使用MM
: MM/dd/yyyy
。 See: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html 参见: https : //docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.