Documentation

createFromPhp

static public static
\Bitrix\Main\Type\Date::createFromPhp(
 \DateTime $datetime
);

Static method creates an object of class \Date from PHP object of class \DateTime.

Parameters

ParameterDescriptionVersion
$datetimeObject source.

Example



© «Bitrix24», 2001-2024
Up