[Zope] date formatting question
Peter Bengtsson
mail at peterbe.com
Mon Dec 15 12:07:11 EST 2003
<dtml-call "REQUEST.set('now',ZopeTime().strftime('%Y-%m-%d))">
Kate Legere wrote:
> I'm passing a date variable to a MySQL database and want to send the date
> dynamically.
>
> In my dtml method file I have
> <dtml-call "REQUEST.set('now',ZopeTime().ISO())">
>
> which gives me the date in almost the right format - however I need only the
> 0000-00-00 part at the beginning and don't seem to be able to find a method
> that returns precisely what I want.
>
> I've also tried <dtml-call "REQUEST.set('now',ZopeTime().Date())"> but that
> doesn't work.
>
> Any suggestions?
>
> Kate
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
> .
>
--
God Jul! Merry Christmas! Joyeux Noël!
Peter Bengtsson, http://www.peterbe.com
More information about the Zope
mailing list