Documentation

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

ParameterDescriptionVersion
$timeDate string representation.
$formatDate PHP date. When not specified, uses current settings format.

Example



© «Bitrix24», 2001-2023
Up