FreeMarker - Remove comma from milliseconds

Begoodpy picture Begoodpy · Feb 5, 2014 · Viewed 10.9k times · Source

Using FreeMarker, I want to display a date into milliseconds:

${mydate?long}

but I get as output a comma separated millisecond:

524,354,400,000

is there any built-in function in Freemarker to remove comma ?

Thanks

Answer

lance-java picture lance-java · Feb 5, 2014

It looks like as of version 2.3.17 you can use:

${myDate?long?c}

http://sourceforge.net/p/freemarker/feature-requests/72/