Created
May 1, 2015 21:53
-
-
Save srl295/918d608122af9c5d404a to your computer and use it in GitHub Desktop.
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
// these 3 produce green underbars in Visual Studio Code, but shouldn't. | |
// complains that [] must be a string. no, it can be an array. | |
var df_point = new Intl.DateTimeFormat([], {year: "numeric"}); | |
// complains that ["es"] must be a string. no, it can be an array. | |
var df_point1 = new Intl.DateTimeFormat(["es"], {year: "numeric"}); | |
// complains that 'year: numeric' requires hour12. no, hour12 is optional. | |
var df_point2 = new Intl.DateTimeFormat("de", {year: "numeric"}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment