• Create a date format function.

    Parameters

    Returns FormatFunc

    A new date format function.

    Notes

    This formatter uses Date.toDateString() 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.