Check the date format

by Sanju 2010-09-17 12:42:06

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)

Tagged in:

860
like
0
dislike
0
mail
flag

You must LOGIN to add comments