5 lines
123 B
TypeScript
5 lines
123 B
TypeScript
|
|
export const formatYearMonth = (year: number, month:number): string => {
|
|
return `${year}-${month<10?"0":""}${month}`;
|
|
}
|