Skip to main content

getFirstAndLastDay

Callable

  • getFirstAndLastDay(day: number): { firstDay: Date; lastDay: Date }

  • Calculates the first and last day of the current month based on the provided day.

    @example
    // Returns the first and last day of the current month based on the provided day
    getFirstAndLastDay(15);