Created
October 21, 2013 15:12
-
-
Save bih/7085511 to your computer and use it in GitHub Desktop.
Simple function in JavaScript to getMonthName() :-)
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
Date.prototype.getMonthName = function(){ | |
return ["January", "February", "March", "April", "May", "June", | |
"July", "August", "September", "October", "November", "December"][this.getMonth()]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment