title | version | signature |
---|---|---|
Days |
1.6.0 |
moment.duration().days();
moment.duration().asDays();
|
As with the other getters for durations, moment.duration().days()
gets the days (0 - 30).
moment.duration().asDays()
gets the length of the duration in days.