Category:

Date and time

Formats a DateTime value using a mask.

Syntax

format_date_time(
  x DateTime,
  Mask String
): String

Parameters

x is a DateTime value to format.

Mask is a mask.

Return value

Type: String. Returns formatted DateTime value as a string.

Examples of using

'Current date: ' + format_date_time(date, 'yyyy-mm-dd')
'Current month: ' + format_date_time(date, 'mmmm')