fixes
This commit is contained in:
@@ -14,4 +14,33 @@ export const formatDate = (date) => {
|
||||
month: '2-digit',
|
||||
year: '2-digit',
|
||||
});
|
||||
}
|
||||
|
||||
export const getMonthName = (month: number) => {
|
||||
switch (month) {
|
||||
case 0:
|
||||
return 'Январь'
|
||||
case 1:
|
||||
return 'Февраль'
|
||||
case 2:
|
||||
return 'Март'
|
||||
case 3:
|
||||
return 'Апрель'
|
||||
case 4:
|
||||
return 'Май'
|
||||
case 5:
|
||||
return 'Июнь'
|
||||
case 6:
|
||||
return 'Июль'
|
||||
case 7:
|
||||
return 'Август'
|
||||
case 8:
|
||||
return 'Сентябрь'
|
||||
case 9:
|
||||
return 'Октябрь'
|
||||
case 10:
|
||||
return 'Ноябрь'
|
||||
case 11:
|
||||
return 'Декабрь'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user