Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

months js

const months = Array.from({ length: 12 }, (_, monthNumber) => {
    const date = new Date(0, monthNumber);
    return date.toLocaleDateString('pt-BR', {month: "long"});
})

// ['janeiro', 'fevereiro'....]
 
PREVIOUS NEXT
Tagged: #months #js
ADD COMMENT
Topic
Name
8+1 =