RegEx maybe:
$pattern = "^[0-9]{1,2}/[0-9]{1,2}/[0-9]{1,4}$";
if(eregi($pattern, $date))
{
// Valid
}
{
// Invalid
}
That's a very basic one. It doesn't check for proper dates. So this would validate:
99/00/0000
If you want to check format, that will work. But further checking as to make sure each integer is between 1-12, 1-31, x-2006 is your job.
You can really make it sloppy....
$pattern = "^[1|2|3|4|5|6|7|8|9|10|11|12]/[1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31]/[1999|2000|2001|2002|2003|2004|2005|2006]$"