Documentation

Date

Date class for handling dates.

Queries the following namespace:

Method Description Available from version
add Executes arithmetic actions with dates.
convertFormatToPhp Converts date format from regional settings into PHP format.
createFromPhp Creates Date object from PHP object \DateTime.
createFromTimestamp Creates Date object from Unix timestamp.
format Returns date format string value.
getFormat Converts date format from regional settings into PHP format.
getTimestamp Returns Unix timestamp for a date.
isCorrect Validates date for a string.
toString Converts date into string.
__clone Creates an object copy.
__toString Converts date into string according to regional default settings.


© «Bitrix24», 2001-2024
Up