I don't know about web2py but it's best with python to just store a
datetime object.  That way you can manipulate it in any way needed.

On Oct 13, 10:58 am, WallyDD <[email protected]> wrote:
> Hi Rohit,
>
> How the date is stored is largely irrelevant. Store them any way you
> can, as long as it works.
>
> When it comes to displaying the date just configure your output to how
> you would like your dates displayed.
>
> Hope this helps.
>
> On Oct 11, 9:12 pm, Rohit <[email protected]> wrote:
>
>
>
>
>
>
>
> > I am developing an online booking application on Google app engine in
> > python using web2py framework where I am storing the date  using the
> > date type of web2py, which stores the date in yyyy-mm-dd format.I need
> > to store the data in dd-mm-yyyy format in the datastore.
>
> > For this I tried to use this :
> > date.requires = IS_DATE(format=T('%d-%m-%Y'))
>
> > Though it takes the date in dd-mm-yyyy format it does not store in the
> > dd-mm-yyyy format.It still
> > stores in yyyy-mm-dd format.
>
> > Please provide suggestion
>
> > Thanks
> > Rohit

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to