Function formatDateTimeUS

  • Formats a date to the US date and time format string 'MM/dd hh:mm a'

    Parameters

    Returns string

    A string representing the formatted date in the US date and time format string 'MM/dd hh:mm a'

    Example

    formatDateTimeUS(new Date());
    // => '01/01 12:00 AM'

    formatDateTimeUS('2022-01-01T12:00:00Z');
    // => '01/01 12:00 AM'

Generated using TypeDoc