Skip to content
Permalink
Branch: master
Find file Copy path
1 contributor

Users who have contributed to this file

15 lines (11 sloc) 247 Bytes
title version signature
Days in Month
1.5.0
moment().daysInMonth();

Get the number of days in the current month.

moment("2012-02", "YYYY-MM").daysInMonth() // 29
moment("2012-01", "YYYY-MM").daysInMonth() // 31
You can’t perform that action at this time.