@zablotski/dates-for-calendar
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

dates-for-calendar

Set of Date tools for calendar implementations

Available methods:

getDatesRange: (startDate: string | number | Date, endDate: string | number | Date) => Date[]

returns array of dates between startDate and endDate

getFirstDayOfWeek: (date: Date, firstDayOfWeek?: number) => Date

returns first day of week, Monday is the first day of week by default

getLastDayOfWeek: (date: Date, firstDayOfWeek?: number) => Date

returns last day of week, Monday is the first day of week by default

getCalendarDates: (year: number, month: number) => Date[] // 0 is January

returns array of days for month calendar view (matrix)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    3
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @zablotski/dates-for-calendar

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

4.12 kB

Total Files

5

Last publish

Collaborators

  • zablotski