Function: getMonthOfDay

getMonthOfDay(time): number

获取某月有多少天 摘自:https://segmentfault.com/a/1190000013041329

Parameters

Name Type Description
time string 时间字符串

Returns

number

天数

Example

getMonthOfDay('2018-1-29')
// => 31
ON THIS PAGE