Skip to content

Commit 56dc061

Browse files
Update script.js
1 parent 74823be commit 56dc061

File tree

1 file changed

+0
-2
lines changed
  • Server-Side Components/Server Side/calculate difference between two dates in years, months, and days

1 file changed

+0
-2
lines changed

Server-Side Components/Server Side/calculate difference between two dates in years, months, and days/script.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ function getAgeYMD(startDate, endDate) {
4747
// var birthdate = new GlideDateTime("1997-06-19 00:00:00");
4848
// var today = new GlideDateTime(); // current date
4949
// var age = getAgeYMD(birthdate, today);
50-
5150
// gs.info("Age: " + age.years + " years, " + age.months + " months, " + age.days + " days");
52-
5351
// Output
5452
// Age: 28 years, 3 months, 14 days

0 commit comments

Comments
 (0)