Documentation

DateFormat

string CIBlockFormatProperties::DateFormat(
   string format, 
   string timestamp
)
 

Converts date into required format. Available formats can be viewed be calling CIBlockParameters::GetDateFormat. Static method.

Note: its a wrapper function for FormatDate.

Call parameters

Parameter Description
formatDate/time format. Additionally can accept 2 values: SHORT and FULL (source for site's date and time formats).
timestamp Time tag in Unix format.

Returned value

Formatted string.



© «Bitrix24», 2001-2024
Up