date validation in form

P

Pierre

Hi all,
On a form i ask the birth date.

What is the easiest way to format and check the good
format like mm-dd-yyyy

I can't see any data type i have number, integer, text only

or show me some place with example

regards,

Pierre
 
R

Ronx

One way is to use three fields to get the date, using dropdowns
preferably for the month, day and year. The resulting selections can
be validated (30 February is not valid) and concatenated into a hidden
field using JavaScript or processed by a server side script.
 
Top