Created
July 25, 2015 10:55
-
-
Save ihorkatkov/bdc98f25b22a6efb697a to your computer and use it in GitHub Desktop.
[JS ]Функцию getWeekDay(date), выводит текущий день недели в коротком формате 'пн', 'вт', … 'вс'.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getWeekDay(date) { | |
var days = ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб']; | |
var result; | |
result = days[date.getDay()]; | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment