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

Function toIsoIfDate

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

Source from the content-addressed store, hash-verified

22};
23
24export const toIsoIfDate = (value) => {
25 const dt = asDate(value);
26 return dt ? dt.toISOString() : value;
27};
28
29export const toDateString = (value) => {
30 const dt = asDate(value);

Callers 2

buildSinglePayloadFunction · 0.85

Calls 1

asDateFunction · 0.85

Tested by

no test coverage detected