Java – FreeMarker – remove commas from milliseconds
•
Java
Using FreeMarker, I want to display the date in milliseconds:
${mydate?long}
But I get a comma separated millisecond as the output:
524,354,400,000
Is there any built-in function in FreeMarker that can delete commas?
thank you
Solution
It looks like version 2.3 17, you can use:
${myDate?long?c}
http://sourceforge.net/p/freemarker/feature-requests/72/
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码