Function getDates

  • Returns all the dates between the start date and end date, including both.

    Parameters

    • startDate: Date

      The start date.

    • endDate: Date

      The end date.

    Returns Date[]

    • An array of all the dates between the start and end dates, including both.

    Example

    // Example usage:
    getDates(new Date("07-07-2023"), new Date("07-10-2023"));
    // Expected output:
    // [
    // "2023-07-06T18:30:00.000Z",
    // "2023-07-07T18:30:00.000Z",
    // "2023-07-08T18:30:00.000Z",
    // "2023-07-09T18:30:00.000Z"
    // ]

Generated using TypeDoc