mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
19 lines
356 B
TypeScript
19 lines
356 B
TypeScript
export const formatMonth = (monthStr: string) => {
|
|
const [year, month] = monthStr.split('-');
|
|
const monthNames = [
|
|
'January',
|
|
'February',
|
|
'March',
|
|
'April',
|
|
'May',
|
|
'June',
|
|
'July',
|
|
'August',
|
|
'September',
|
|
'October',
|
|
'November',
|
|
'December',
|
|
];
|
|
return `${monthNames[parseInt(month, 10) - 1]} ${year}`;
|
|
};
|