dow()
Gets the day of the week for the specified date. This is different from Date.prototype.getDay()
because it allows for the first day of the week to be days other than Sunday.
0
(for Sunday) and 6
(for Saturday).0
and 6
. 0
will always correspond to the value of opt_firstDayOfWeek
whereas 1
will be the next day and so on.