Update table columns and grouping settings

This commit is contained in:
Dede Fuji Abdul
2024-03-31 21:16:49 +07:00
parent 8f7f16d8d1
commit 1ac1575802
30 changed files with 792 additions and 156 deletions

View File

@@ -60,7 +60,11 @@ const getMonthNumber = (monthName: string) => {
'November',
'Desember'
]
return months.indexOf(monthName) + 1
if (months.filter((month) => month.toLowerCase() === monthName.toLowerCase()).length > 0) {
return months.indexOf(monthName) + 1
} else {
return 0
}
}
const reformatDate = (inputDate: string, originalFormat: string, targetFormat: string): string => {