We're reclaiming inactive PDIs to keep them available foractive builders.Learn what's changing, who's affected, and how to protect your work. Read More
Hi Joseph,
Just a heads up, there's a typo in the weeksAgoEnd function - you've got gdt as gdt2:
gdt.addDaysLocalTime( 7 - gdt2.getDayOfWeekLocalTime() );
Cheers,
Joe