Forums / Setup & design / Date format / Comment14913

Author Topic

Trond Åge Kvalø

Wednesday 03 March 2004 7:17:16 am

Comment14913

Hi Alex!

And thank you very much. Your code worked as a charm. And the clue here is not to rename my datefield to released, but to append the .data_int before piping it to the datetime function.

So, Francesc! You have to use the following code in your example:

{$:item.data_map.data.data_int|datetime( 'custom', '%d.%m.%Y')}

I really look forward to the day the eZ-guys manages do something with appendix C where all the datatypes are listed. Next step would be to show us how to use these datatypes in the template language. Oh well, I'm just happy someone gave me a solution.

best regards
Trond Kvalo

trondåge