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
0will always correspond to the value of
1will be the next day and so on.