Created
October 23, 2019 08:53
-
-
Save shisama/97e175e3e609d2bba5e5430b6785d77e to your computer and use it in GitHub Desktop.
difference between Node.js v12 and v13 about Intl
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
const january = new Date(9e8); | |
const spanish = new Intl.DateTimeFormat('es', { month: 'long' }); | |
console.log(spanish.format(january)) | |
// 'M01' v12 | |
// 'enero` v13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment