Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FreeMarker - Remove comma from milliseconds

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

like image 799
Begoodpy Avatar asked Feb 05 '14 12:02

Begoodpy


1 Answers

It looks like as of version 2.3.17 you can use:

${myDate?long?c}

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

like image 68
lance-java Avatar answered Sep 17 '22 03:09

lance-java