MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / dateFromInputValue

Function dateFromInputValue

deployments/desktop/static/desktop.js:1520–1524  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1518 }
1519
1520 function dateFromInputValue(value) {
1521 const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value || ""));
1522 if (!match) return null;
1523 return new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
1524 }
1525
1526 function selectedDateFetchDays() {
1527 const today = dateFromInputValue(todayDateValue());

Callers 1

selectedDateFetchDaysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected