getFormat
string public static \Bitrix\Main\Type\Date::getFormat( \Bitrix\Main\Context\Culture $culture = null );
Static method converts date format from regional settings into PHP format.
Parameters
Parameter | Description | Version |
---|---|---|
$culture | Cultural/regional settings. |
Example
use \Bitrix\Main\Type; $dateTime = new Type\DateTime(); echo $dateTime->format(Type\Date::getFormat());
© «Bitrix24», 2001-2024
Up