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
Parameter | Description | Version |
---|---|---|
$datetime | Object source. |
Example
© «Bitrix24», 2001-2025
Up