• Create an ISO datetime format function.

    Parameters

    Returns FormatFunc

    A new ISO datetime format function.

    Notes

    This formatter uses Date.toISOString() to format the values.

    If a value is not a Date object, new Date(value) is used to coerce the value to a date.

    The formatIntlDateTime() formatter is more flexible, but slower.