MCPcopy Create free account
hub / github.com/microsoft/SandDance / toDate

Function toDate

docs/app/js/sanddance-app.js:107110–107113  ·  view source on GitHub ↗
(_, parser)

Source from the content-addressed store, hash-verified

107108}
107109const defaultParser = (_)=>isNumber(_) ? _ : isDate(_) ? _ : Date.parse(_);
107110function toDate(_, parser) {
107111 parser = parser || defaultParser;
107112 return _ == null || _ === "" ? null : parser(_);
107113}
107114function toString(_) {
107115 return _ == null || _ === "" ? null : _ + "";
107116}

Callers

nothing calls this directly

Calls 1

parserFunction · 0.70

Tested by

no test coverage detected