Created
July 1, 2014 14:20
-
-
Save ayoungh/4e44c32f73c6c5cea8da to your computer and use it in GitHub Desktop.
Day Of Week JS
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 theDay () { | |
var thedate = new Date(); | |
var weekday = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
var dayofweek = weekday[thedate.getDay()]; | |
return dayofweek; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment