@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function endOfDay

    • Returns a new Date representing the end of the day (23:59:59.999) in local time.

      Parameters

      • date: Date

        The input date.

      Returns Date

      endOfDay(new Date("2024-06-15T08:00:00")) // => 2024-06-15T23:59:59.999