Hello ! My problem is that: I want to load the records from an FB DB. The KIDB is get the DateTime fields as objects. I try with these things: #import time #sdate=row['LENDING_DATE'].strftime('%Y.%m.%d.') - it is show zope's password dialog #sdate=time.strftime('%Y.%m.%d.',row['LENDING_DATE']) - auth error #sdate=DateTime(row['LENDING_DATE']).strftime('%Y.%m.%d.') - zope have been died in this line sdate=str(row['LENDING_DATE']) - this is working... but... I want to show the date as hungarian format ('%Y.%m.%d.'). Anyone have the solution ? -- Best regards, fowlertrainer mailto:fowlertrainer@anonym.hu
fowlertrainer@anonym.hu wrote:
#sdate=row['LENDING_DATE'].strftime('%Y.%m.%d.') - it is show zope's password dialog
Funny, I wonder wh ythat is, hit cancel and see what it says...
#sdate=time.strftime('%Y.%m.%d.',row['LENDING_DATE']) - auth error
More detail?
#sdate=DateTime(row['LENDING_DATE']).strftime('%Y.%m.%d.') - zope have been died in this line
What does that mean? Something like that doesn't generally cause Zope to crash...
sdate=str(row['LENDING_DATE']) - this is working... but...
I want to show the date as hungarian format ('%Y.%m.%d.').
how about: sdate = DateTime(str(row['LENDING_DATE'])).strftime('%Y.%m.%d.') ...as a workaround? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers -
fowlertrainerļ¼ anonym.hu