Skip to content

Instantly share code, notes, and snippets.

@rohozhnikoff
Created October 4, 2013 23:39
Show Gist options
  • Save rohozhnikoff/6834578 to your computer and use it in GitHub Desktop.
Save rohozhnikoff/6834578 to your computer and use it in GitHub Desktop.
Начинаем день недели с понедельника
Date.prototype.getWeekday = function(){
var weekday = this.getDay() - 1;
if(weekday === -1) weekday = 6;
return weekday;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment