[reportlab-users] Formatting a data in the PDF-File
Craig Ringer
reportlab-users@reportlab.com
Fri, 13 Aug 2004 13:55:12 +0800
On Thu, 2004-08-12 at 19:38, Jürg Hofmann wrote:
> Hi all
>
> In my report I should print datas in the format "dd.mm.yyyy". Is there a
> reportlab-setup possibility to make this the default format for the
> PDF-File?
I'm assuming you mean 'date' when you say 'data', in which case you will
want to use the 'date.strftime' method for datetime.date in the stdlib:
>>> datetime.date.today().strftime("%d.%m.%Y")
'13.08.2004'
or the .Format method for MXDateTime date objects.
--
Craig Ringer