• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/prop_date.php
  • Класс: CIBlockPropertyDate
  • Вызов: CIBlockPropertyDate::checkInternalFormatValue
static function checkInternalFormatValue(string $value): bool
{
	if ($value === '')
	{
		return false;
	}

	$correctValue = date_parse_from_format(parent::FORMAT_SHORT, $value);

	return ($correctValue['warning_count'] === 0 && $correctValue['error_count'] === 0);
}