i'd use separate fields for year, month, day. then just
concatenate them
before inserting in the DB
using list/menu fields you also simplify the validation
Martin Lang wrote:
> A user can enter a date into a form field. The date will
be inserted
> into a database. The input has to be as yyyy-mm-dd.
>
> How can I control the input and display an error message
if the user
> enters dd.mm.yyyy?
>
> Martin