8 messages in com.googlegroups.google-appengine[google-appengine] Re: datetime.datet...
FromSent OnAttachments
Esben06 Jul 2008 08:37 
GAEfan06 Jul 2008 12:29 
Esben07 Jul 2008 00:18 
Esben07 Jul 2008 08:54 
Patrick Lewis07 Jul 2008 12:54 
Patrick Lewis07 Jul 2008 13:41 
Esben08 Jul 2008 06:55 
Patrick Lewis08 Jul 2008 07:26 
Subject:[google-appengine] Re: datetime.datetime.now() reporting error on dev_appserver
From:Esben (esb@ofn.dk)
Date:07/07/2008 12:18:48 AM
List:com.googlegroups.google-appengine

Thanks for the answer i will give that a try. Any idea why this is so? I have looked at other peoples GAE code and found no reference to the difference in behavior (i also found code with the exact same syntax as mine, that reportedly works). Is there anywhere in the GAE docs where this is described? (just so i know where to look the next time i encounter such a problem)

-- Esben

On Jul 6, 9:29 pm, GAEfan <ken@gmail.com> wrote:

Esben:

You need to convert the object into a string.  Look up strftime for customizing the output.

now=datetime.now dateString = now.strftime('%m'/'%d'/'%Y')

print dateString