correction erreur et découpage en composant
This commit is contained in:
1 parent
12c0af8190
commit
32bde03254
12 files changed
+508
-351
No files matched your search
@@ -0,0 +1,8 @@
|
||||
export default function formatDateLetter(d) {
|
||||
const monthNames = [
|
||||
"Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
|
||||
"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
|
||||
];
|
||||
const [year, month, day] = d.split('-');
|
||||
return `${day} ${monthNames[parseInt(month) - 1]} ${year}`;
|
||||
};
|
||||
Reference in new issue
Block a user