Easy Tutorial
❮ Func String Strip Tags Func Math Round ❯

PHP checkdate() Function

PHP Date/Time Reference Manual

Example

Check if some dates are valid Gregorian dates:


Definition and Usage

The checkdate() function is used to validate a Gregorian date.

Syntax

Parameter Description
month Required. A number from 1 to 12 that specifies the month.
day Required. A number from 1 to 31 that specifies the day.
year Required. A number from 1 to 32767 that specifies the year.

Technical Details

Return Value: Returns TRUE if the date is valid, otherwise returns FALSE.
PHP Version: 4.0+
--- ---
❮ Func String Strip Tags Func Math Round ❯