Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
1961c05172
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue