This site is mobile accessible. Press the "Tap Here" button to use a different font-size.
Smartphone icons created by Freepik - Flaticon
The Gregorian Calendar was created by Pope Gregory, hence the name. The checkdate() function is used to validate a Gregorian date.
bool(false)
bool(false)
bool(true)
<?php var_dump(checkdate(12,31,-400)); // this is false as Pope Gregory was not even born yet to create the Gregorian Calendar echo "<br>"; var_dump(checkdate(2,29,2003)); // this is false as 2003 was not a leap year so February cannot have 29 days echo "<br>"; var_dump(checkdate(2,29,2004)); ?>