An Entrepreneur, Coach, IT Consultant, Strategic Adviser, and a Traveler craving to explore and contribute to forming a better society.

Saturday, January 17, 2009

PHP Functions #0001 - checkdate

No comments :
Keywords: PHP Functions, Checkdate, Validate date

checkdate — Validate a Gregorian date

Syntax - bool checkdate ( int $month , int $day , int $year )

Description - Checks the validity of the date formed by the arguments. A date is considered valid if each parameter is properly defined.

Return Value - Returns TRUE if the date given is valid; otherwise returns FALSE.

Parameters

month - The month is between 1 and 12 inclusive.

day - The day is within the allowed number of days for the given month . Leap year s are taken into consideration.

year - The year is between 1 and 32767 inclusive.

echo checkdate(12312000); print_r( checkdate(12312000) );

Keywords: PHP Functions, Checkdate, Validate date

Featured Blog Topics:

No comments :