adding th,nd or st to a date

Author Message

Tony Stark

Wednesday 02 April 2008 12:39:03 pm

Hi,
I have the following:

{$this_object.data_map.date.content.timestamp|datetime(custom,"%l %j,")}

Is there a way I can ensure that the date has "th", "nd" or "st" is appended to the data on display?

I cannot see a way to do it on the docs....granted I skimmed over the them!

;-)

Thanks

Tony

Maxime Thomas

Wednesday 02 April 2008 11:07:23 pm

Ah, no...
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/formatting_and_internationalization/l10n
I guess you may add this as an enhancement or developp your own operator..

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.