Java – FreeMarker – remove commas from milliseconds

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
分享
二维码
< <上一篇
下一篇>>