db.mytable.datetime_field.represent = lambda value, row:
value.strftime("format-here")
(thanks
Rocha
http://stackoverflow.com/questions/12605934/formating-date-in-web2py-python)
see here for the directives to use in 'format-here'...
https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior
On Monday, January 26, 2015 at 10:16:49 PM UTC-7, Moiz Nagpurwala wrote:
>
> I want to Display date as *Tuesday, January 27, 2015*
>
> How to do that.
>
> Thanks.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.