- Original Message -
From: Vincent Maton <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 5:12 PM
> Can you help me ?
>
> I have some dates in a DataBase but I receive them in string after a query
> and it's in international format, I would like transform it in french
> format.
> With , it doesn't work.
>
> Do you know how can I transform it with strings:
>
> I receive : 2000-04-13
> I want : 13-04-2000
> or: 13 april 2000 (this one is better but ???)
>
There's More than One Way to Do It :)
If date is a DateTime object you have to use:
06-06-2000
or
06-Jun-2000
or
06-June-2000
See python doc , module "time",function "strftime "
If date is NOT a DateTime object (is a string like '2000-06-06') you have to
use:
06-06-2000
PM
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )