dayjs.duration().days(); dayjs.duration().asDays(); As with the other getters for durations, dayjs.duration().days() gets the days (0 - 30). dayjs.duration().asDays() gets the length of the duration in days.