This is how I do it:

from datetime import date
db.define_table('dead_things', Field('death_date','date',default=date
(YYYY,MM,DD)))

On Aug 19, 7:58 pm, jayvandal <[email protected]> wrote:
> I am trying to create a model that has a death date. What I have done
> is SQLField= 'death_date', 'date',Default= ?
> What is the fproper format?
> Thanks
> Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to