bluemonster wrote:i use checkdate() but always return 1
need help how to check
example: 29 feb 2007 is not valid.
Make sure you have the arguments in the (USA-centric) order of month, day, year:
if(checkdate($dMonth, $dDay, $dYear))
{
// valid
}
else
{
// not valid
}
(I would have preferred that they had used the more logical and Y2K-compliant year, month, day format, but that's the way it is.)