dovršen rendering homepage-a
This commit is contained in:
6
app/lib/format.ts
Normal file
6
app/lib/format.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
export const formatYearMonth = (yearMonth: number): string => {
|
||||
const year = Math.floor(yearMonth / 100);
|
||||
const month = yearMonth % 100;
|
||||
return `${year}-${month<10?"0":""}${month}`;
|
||||
}
|
||||
Reference in New Issue
Block a user