Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop

This commit is contained in:
Kittapath 2024-05-17 17:16:35 +07:00
commit 1961c05172

View file

@ -1,5 +1,5 @@
export function calculateAge(start: Date, end = new Date()) {
if (start.getTime() > end.getTime()) return;
if (start.getTime() > end.getTime()) return null;
let year = end.getFullYear() - start.getFullYear();
let month = end.getMonth() - start.getMonth();