MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / toDateString

Function toDateString

frontend/src/utils/forms/RecordingUtils.js:29–32  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

27};
28
29export const toDateString = (value) => {
30 const dt = asDate(value);
31 return dt ? format(dt, 'YYYY-MM-DD') : null;
32};
33
34export const createRoundedDate = (minutesAhead = 0) => {
35 let rounded = roundToNearest(getNow(), 30);

Callers 2

buildRecurringPayloadFunction · 0.85

Calls 2

formatFunction · 0.90
asDateFunction · 0.85

Tested by

no test coverage detected