yearMonth split into year + month
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
|
||||
export const formatYearMonth = (yearMonth: number): string => {
|
||||
const year = Math.floor(yearMonth / 100);
|
||||
const month = yearMonth % 100;
|
||||
export const formatYearMonth = (year: number, month:number): string => {
|
||||
return `${year}-${month<10?"0":""}${month}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user