I have the following in my model:
Field('date', 'date', default=datetime.date.today(), requires = IS_DATE(
format=('%B %-d, %Y')), writable=False,readable=False),
...and in the appadmin database entry form the date displays in the format
I've chosen. However when db.mytable.date is called in a view it displays
in the default YYYY-MM-DD format. According to all the search results I've
found setting the requires=IS_DATE format should fix this.
How do I get the view to render the date in the format I want?
--
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/groups/opt_out.