Check the date format - PHP Views : 318
Tagged in : PHP
0 0
Send mail
Check the date format

The function 'checkdate' is used to check whether the date passed as an argument is a valid date or not. The function returns a boolean value of '1' if the date is a valid date and 'Null' if the date is invalid.

Syntax

checkdate ($intMonth,$date, $intYear);


Example 1 :

checkdate (6, 16,2010);

Output: (1 means true)

Example 2 :

checkdate (2, 31,2009);

Output: (null means false)
By Sanju, On - 2010-09-17



    Login to add Comments .