Merge remote-tracking branch 'origin/main' into starter-packs
This commit is contained in:
@@ -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()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user