HTTP/2 301
server: nginx
date: Sat, 11 Oct 2025 14:11:11 GMT
content-type: text/html; charset=UTF-8
location: https://developer.wordpress.org/reference/functions/wp_checkdate/
x-content-type-options: nosniff
content-language: en
x-ua-compatible: IE=Edge
vary: Accept-Encoding, Cookie
expires: Thu, 01 Jan 1970 00:00:00 GMT
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 14:11:13 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
wp_checkdate() – Function | Developer.WordPress.org
wp_checkdate( int $month , int $day , int $year , string $source_date ): bool
Tests if the supplied date is valid for the Gregorian calendar.
$month
int required Month number.
$day
int required Day number.
$year
int required Year number.
$source_date
string required The date to filter.
bool True if valid date, false if not valid date.
function wp_checkdate( $month, $day, $year, $source_date ) {
/**
* Filters whether the given date is valid for the Gregorian calendar.
*
* @since 3.5.0
*
* @param bool $checkdate Whether the given date is valid.
* @param string $source_date Date to check.
*/
return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );
}
View all references View on Trac View on GitHub
Version Description 3.5.0 Introduced.
“checkdate” link, in description section (https://developer.wordpress.org/reference/functions/wp_checkdate/#see-also), is broken