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

    Function startOfDay

    • Returns a new Date representing the start of the day (00:00:00.000) in local time.

      Parameters

      • date: Date

        The input date.

      Returns Date

      startOfDay(new Date("2024-06-15T14:30:00")) // => 2024-06-15T00:00:00.000