[reportlab-users] Formatting a data in the PDF-File

Jürg Hofmann reportlab-users@reportlab.com
Fri, 13 Aug 2004 11:18:20 +0200


Craig Ringer schrieb:

>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
>
>_______________________________________________
>reportlab-users mailing list
>reportlab-users@reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>  
>
Sorry for the "data" mistake, "date" is what I mean. Thank you very 
much, it is working fine with the datetime.date.strftime method.

Regards,

Jürg