custom-card-helpers
    Preparing search index...

    Function formatDateTimeWithSeconds

    • Formatting a dateObject to date with time e.g. August 9, 2021, 8:23:15 AM

      Parameters

      • dateObj: Date

        The date to convert

      • locale: FrontendLocaleData

        The users's locale settings

      Returns string

      month and day like "August 9, 2021, 8:23:15 AM"