Forums / Developer / l10n hacks
Andrew Kelly
Friday 21 July 2006 4:42:53 am
Hi all,
any of you have a hack to l10n so that the output is somewhere in between a 'date' and a 'short date'.
What I'm after is 'date', without the day of week prepended. And if possible,without the 0 padding.
'date' delivers: Friday 06 February 2004 What I'd like is: 06 February 2004Or even better: 6 February 2004
Any suggestions?
Andy
Marko Žmak
Friday 21 July 2006 5:28:30 am
Try looking at the datetime() operator:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/formatting_and_internationalization/datetime
With it you can format time any way you like.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Friday 21 July 2006 6:41:46 am
Outstanding, thank you very much.