Hi, I'm using web2py 2.7.2 and date fields on DAL are translating your
validate.

Example:

I have in model:

product = db.define_table('product',
Field('expiration','date'))

db.product.expiration.requires = IS_DATE(format('%Y-%m-%d'))

T.force(None)

When I insert a date like this:
*2013-11-19*

   - If my browser is in english language:

It's ok and insert in database

   - If my browser is in brazilian portuguese language:

The form returns a error like this: *enter date as 28-08-1963*

How could I force the format AAAA-MM-DD?

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to