Let web2py do its magic. Give each of those date input fields an _id and
_class="date" The _class="date" will make web2py automatically assign the
date selector widget to the field (and that widget needs the _id to work).
Then when processing the form, use form.vars.Fin instead of
request.vars.Fin because then web2py will have automatically converted the
form value to a python date object (because the requires=IS_DATE() told it
to).
TD("De la date (AAAA-MM-JJ)", INPUT(_name='Debut', _id="Debut",
_type="text", _class='date', requires = IS_DATE(error_message=T('Doit être
de la forme AAAA-MM-JJ !')))),
TD("A la date (AAAA-MM-JJ)", INPUT(_name='Fin', _id="Fin", _type="text",
_class='date', requires = IS_DATE(error_message=T('Doit être de la forme
AAAA-MM-JJ !')))),
TD("Interval (AAAA-MM-JJ)", INPUT(_name='Interval', _id="Interval",
_type="text", _class='date', requires = IS_DATE(error_message=T('Doit être
de la forme AAAA-MM-JJ !')))),
DebArt=form.vars.DebArt
Debut=form.vars.Debut
Fin=form.vars.Fin
FinArt=form.vars.FinArt
NonArt=form.vars.NonArt
PluArt=form.vars.PluArt
Interval=form.vars.Interval
What kind of an interval are you trying to figure out from the dates?