wp_checkdate
wp_checkdate ( $month, $day, $year, $source_date )
Parameters:- (int) month Month number.
- (int) day Day number.
- (int) year Year number.
- (string) source_date The date to filter.
Links:Returns:- (bool) True if valid date, false if not valid date.
Defined at: - Introduced in WordPress: 3.5.0
- Deprecated in WordPress: —
Description
Tests if the supplied date is valid for the Gregorian calendar.