vlibDate

vLIB logo

6.18. isDate()

Function Description
  isDate (string timestamp)

Returns true if the given timestamp is valid, false otherwise.

The timestamp parameter is a vlibDate timestamp. For more information, please see the IMPORTANT section.

Example

   if (!$date->isDate('1999-13-35')) die ('invalid date!');