codetrix - v1.5.0
    Preparing search index...

    Function setToStartOfDay

    • Sets the time of the given date to the start of the day (00:00:00.000).

      Parameters

      • date: Date

        The original date.

      Returns Date

      A new Date at the start of the same day.

      setToStartOfDay(new Date()); // → today at 00:00:00.000