Last active
July 31, 2018 10:10
-
-
Save Sensational-Code/7968e9f0345817a4cda21afe566c13b1 to your computer and use it in GitHub Desktop.
Get Month and Weekday
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
var date = new Date(); | |
var locale = 'en-us'; | |
var month = date.toLocaleString(locale, {month: 'long'}); | |
var weekday = date.toLocaleString(locale, {weekday: 'long'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment