isDate.php
Table of Contents
Functions
- isDate() : bool
- Indicates if the passed-in expression is a valid date with a specific format (default 'Y-m-d').
Functions
isDate()
Indicates if the passed-in expression is a valid date with a specific format (default 'Y-m-d').
isDate(string|null $date[, string $format = 'Y-m-d' ]) : bool
Parameters
- $date : string|null
-
The expression to evaluate.
- $format : string = 'Y-m-d'
-
The date format (default 'Y-m-d').
Tags
Return values
bool —Indicates if the passed-in expression is a valid timezone.