|
|
Check the date format - PHP
|
Views : 318
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|