feat: qalendar typing

This commit is contained in:
opbnq-q
2025-03-11 05:22:41 -07:00
parent a130fb9063
commit 5c372e8029
5 changed files with 58 additions and 4 deletions

View File

@@ -36,4 +36,11 @@ export const timestampToDate = (obj: any) => {
}
}
return obj
}
}
export function toSimpleDateString(date: Date): string {
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, "0")
const day = String(date.getDate()).padStart(2, "0")
return `${year}-${month}-${day}`
}