The given date
Optional
The options
The day of week, 0 represents Sunday
getDay
Get the day of the week of the given date.
// Which day of the week is 29 February 2012?const result = getDay(new Date(2012, 1, 29))//=> 3 Copy
// Which day of the week is 29 February 2012?const result = getDay(new Date(2012, 1, 29))//=> 3
The given date