[Zope] DateTime: Get DateTime-Objekt from german dateformat
%d.%m.%Y
Andreas Jung
lists at andreas-jung.com
Thu Mar 3 05:55:47 EST 2005
--On Donnerstag, 3. März 2005 11:49 Uhr +0100 Patrick Ulmer
<ulmer at truckport.de> wrote:
> Hi,
>
> i have a litte problem to insert my german dateformat into my
> SQL-Database, because I must convert it to ISO-Format. I try
>
> datum=_.DateTime (wiedervorlage).ISO())
>
> but day and month ar interchanged.
That's why it is called ISO format which is defined in the way you see it.
>
> How can I convert my datestring '1.3.2005' to '2005-03-01'?
Look at the DateTime API -> somedate.strftime(formatstring)
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050303/d53b7e6f/attachment.bin
More information about the Zope
mailing list