Hi

I have the following defining my DB tables:-

db.define_table('school_students',
    Field('first_name', 'string',requires=IS_NOT_EMPTY()),
    Field('surname', 'string',requires=IS_NOT_EMPTY()),
    Field('year', 'string',requires=IS_NOT_EMPTY()),
    Field('form', 'string',requires=IS_NOT_EMPTY()),
    Field('dob', 'date', requires=IS_DATE('%d/%m/%Y')))

But when I import the data into the database from a file I get  0000-00-00, 
where the date should have been imported.
The date format of the imported file is dd/mm/yyyy.
How do I define this to get the correct format, I have looked on google and 
 in forums and it mention to put IS_DATE('%d/%m/%Y.
As you see, I did that above but did not work.
Please point me the right direction.

Thanks

G Smith

-- 
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.

Reply via email to