Documentation

BX.date.format

String 
BX.date.format(
 String format,
 Number|Date timestamp,
 Number|Date now,
 Boolean utc
);

Transfer of JavaScript function [link=formatdate]FormatDate[/link].

Function parameters

Parameter Description
format Date format description
timestamp Date/time as the UNIX timestamp or the 'Date' object. Data type: Date | Number
now Current date/time as the UNIX timestamp or the 'Date' object (required for some variants of format fields, based on the current time).
utc "Dates passed to UTC" flag


© «Bitrix24», 2001-2022
Up