dateTimeFormat

Converts a date and time to a provided format.

dateTimeFormat

Converts a date and time to a provided format.

Type: transform

Parameters

  • input (union): The input date and time, either as a string or number.
  • format (string): The format to convert the date and time to.

Returns

Type: string

The date and time in the specified format.

Examples

dateTimeFormat(datetime, format)
datetime|dateTimeFormat(format)
Cookie Notice

We use cookies to enhance your browsing experience.