wouldn't it just better to propose an integer field or a selectbox (or an
autocomplete) with the next 10 years ?!?!?!
On Monday, May 9, 2016 at 10:33:06 PM UTC+2, Winter Kryz wrote:
>
> Hello,
>
> I have created a form where I need to insert the enrolling year of a
> student that is about to graduate on a particular career in a University.
> The 'year' field on the form displays an ajax calendar but it shows the
> complete date DD-MM-YYYY and I want it to display just the year without day
> and month on it.
> This is what I did on the database.py
>
> db.define_table('Graduate',
> Field('person', 'reference Person'),
> Field('career',db.Career),
> Field('title','string'),
> Field('year','date',requires=IS_DATE(format='%Y')),
> Field('dateGraduation','date')
> )
>
> I hope you can understand me and please help me with these.
> 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.