Function formatDateTimeShort

  • Formats a date to the short date and time format string 'MMM dd hh:mm a'

    Parameters

    Returns string

    A string representing the formatted date in the short date and time format string 'MMM dd hh:mm a'

    Example

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

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

Generated using TypeDoc