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

Function addDate

scripts/ufs_statistic.js:440–444  ·  view source on GitHub ↗
(date, amount)

Source from the content-addressed store, hash-verified

438}
439
440function addDate(date, amount) {
441 let newDate = new Date(date);
442 newDate.setDate(newDate.getDate() + amount);
443 return newDate;
444}
445
446function dateToString(date) {
447 let day = date.getDate().toString().padStart(2, "0");

Callers 1

onDocumentEndFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected