MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / normalizeDate

Function normalizeDate

wxapp/casetify.js:53–57  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

51}
52
53function normalizeDate(value) {
54 const parts = String(value || "").split("-");
55 if (parts.length !== 3) return String(value || "");
56 return `${parts[0]}-${String(Number(parts[1])).padStart(2, "0")}-${String(Number(parts[2])).padStart(2, "0")}`;
57}
58
59function today() {
60 const d = new Date();

Callers 1

doSignMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected