Your Airkit journey starts here

FORMAT_DATETIME

Produce a formatted string from a datetime.

Declaration

FORMAT_DATETIME(datetime, format_string, locale) -> formatted_datetime_string
FORMAT_DATETIME(datetime, format_string, locale, time_zone) -> formatted_datetime_string
FORMAT_DATETIME(datetime, format_string) -> formatted_datetime_string
FORMAT_DATETIME(datetime) -> formatted_datetime_string

Parameters

datetime
datetime -Any datetime.
format_string
string -string representing the format to be outputted.
locale
string -The locale the datetime should be formatted in.
time_zone
string -The time zone that the datetime will convert to.

Return Values

formatted_datetime_string
string -Resulting string from the datetime given the format string.