Merge remote-tracking branch 'origin/main' into starter-packs

This commit is contained in:
Hailey
2024-06-18 15:32:38 -07:00
6 changed files with 56 additions and 30 deletions
+11
View File
@@ -19,3 +19,14 @@ export function getAge(birthDate: Date): number {
}
return age
}
/**
* Compares two dates by year, month, and day only
*/
export function simpleAreDatesEqual(a: Date, b: Date): boolean {
return (
a.getFullYear() === b.getFullYear() &&
a.getMonth() === b.getMonth() &&
a.getDate() === b.getDate()
)
}