5 Mar
2007
5 Mar
'07
12:45 p.m.
Andreas Jung schrieb:
...
And I would not use it much because you loose all type information and the ability to sort accordingly and calculate with the values.
Better format them just for output - which would be in python code.
It depends on the usecase..if you don't have to deal with different date format it is handy to convert it on the RDBMS level..otherwise you have to write something like
<span tal:content="python: row.mydate.strftime(fmtstring)" />
No, you would do that in your formatter class or at least in the python script preparing the values for the template. Regards Tino :-)