The given date
Optional
An object with options
The month index (0-11)
getMonth
Get the month of the given date.
// Which month is 29 February 2012?const result = getMonth(new Date(2012, 1, 29))//=> 1 Copy
// Which month is 29 February 2012?const result = getMonth(new Date(2012, 1, 29))//=> 1
The given date