isCorrect
boolean public static \Bitrix\Main\Type\Date::isCorrect( string $time, string $format = null );
Static method checks validates date for a string (when attempting to create an object of class \Date
).
Parameters
Parameter | Description | Version |
---|---|---|
$time | Date string representation. | |
$format | Date PHP date. When not specified, uses current settings format. |
Example
© «Bitrix24», 2001-2024
Up