Documentation

convertFormatToPhp

mixed public static
\Bitrix\Main\Type\Date::convertFormatToPhp(
 string $format
);

Static method converts date format from regional settings into PHP format. Similar to the old core CDatabase::DateFormatToPHP

Parameters

ParameterDescriptionVersion
$formatFormat string.

Example



© «Bitrix24», 2001-2024
Up