Format Date in ZPT

This post was written 6 years ago.
Wed, 02 Aug 2006
Just a quick example of how to format a date in ZPT. DateTime is already available within the Plone environment, so you can do something like this:-

item_date item/EffectiveDate;
item_display_date python:DateTime(item_date).strftime('%B %d, %Y');

The above example formats the date in a US style e.g. 3 July, 2006
This post was written 6 years ago, which in internet time is really, really old. This means that what is written above, and the links contained within, may now be obsolete, inaccurate or wildly out of context, so please bear that in mind :)
Tags: plone /
Comments
blog comments powered by Disqus