nodejs18/test2.js

4 lines
135 B
JavaScript
Raw Normal View History

const january = new Date(9e8);
const spanish = new Intl.DateTimeFormat('es', { month: 'long' });
console.log(spanish.format(january));