0.0.5 • Published 1 year ago
dayjs-plugin-monthweek v0.0.5
dayjs-plugin-monthweek
Gets the week of the month.
Usage
$ npm install dayjs-plugin-monthweek
import dayjs from "dayjs"
import monthWeek from "dayjs-plugin-monthweek"
dayjs.extend(monthWeek)
Get the week of the month
dayjs(new Date(2023, 0, 1)).monthWeek() // { year: 2022, month: 11, week: 5 }