dayjs.duration().months(); dayjs.duration().asMonths(); As with the other getters for durations, dayjs.duration().months() gets the months (0 - 11). dayjs.duration().asMonths() gets the length of the duration in months.