MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / addDate

Function addDate

scripts/ufs_statistic_old.js:640–644  ·  view source on GitHub ↗
(date, amount)

Source from the content-addressed store, hash-verified

638}
639
640function addDate(date, amount) {
641 let newDate = new Date(date);
642 newDate.setDate(newDate.getDate() + amount);
643 return newDate;
644}
645
646function dateToString(date) {
647 let day = date.getDate().toString().padStart(2, "0");

Callers 1

onDocumentEndFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected