Function formatDateUS

  • Formats a date to the US date format 'MM/dd/yyyy'

    Parameters

    Returns string

    A string representing the formatted date in the US date format 'MM/dd/yyyy'

    Example

    formatDateUS(new Date());
    // => '01/01/2022'

    formatDateUS('2022-01-01');
    // => '01/01/2022'

Generated using TypeDoc