DayofWeek MongoDB
{ $dayOfWeek: new Date("2016-01-01") }
// result :6
Tiny Coders
{ $dayOfWeek: new Date("2016-01-01") }
// result :6