/t5/dreamweaver-discussions/check-date-input/m-p/78093#M108644Oct 12, 2006
Oct 12, 2006
Copy link to clipboard
Copied
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
/t5/dreamweaver-discussions/check-date-input/m-p/78095#M108646Oct 13, 2006
Oct 13, 2006
Copy link to clipboard
Copied
Or use a javascript Datepicker - there are plenty of decent
free ones on the
web and most have Date formatting options.
"Martin Lang" <mart@nospam.net> wrote in message
news:egm6sn$e3i$1@forums.macromedia.com...
> John Doe schrieb:
>> i'd use separate fields for year, month, day. then
just concatenate them
>> before inserting in the DB
>
> Good idea - thank you!
>
> Martin