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

Function todayDateValue

deployments/desktop/static/desktop.js:1512–1518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1510 }
1511
1512 function todayDateValue() {
1513 const now = new Date();
1514 const year = now.getFullYear();
1515 const month = String(now.getMonth() + 1).padStart(2, "0");
1516 const day = String(now.getDate()).padStart(2, "0");
1517 return `${year}-${month}-${day}`;
1518 }
1519
1520 function dateFromInputValue(value) {
1521 const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value || ""));

Callers 6

selectedDateFetchDaysFunction · 0.85
syncDateControlsFunction · 0.85
demoApiFunction · 0.85
formatChatDateLabelFunction · 0.85
renderChatHistoryFunction · 0.85
bindEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected