MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / formatDate

Function formatDate

wxapp/fafa.js:54–59  ·  view source on GitHub ↗
(date = new Date(), separator = "-")

Source from the content-addressed store, hash-verified

52}
53
54function formatDate(date = new Date(), separator = "-") {
55 const y = date.getFullYear();
56 const m = String(date.getMonth() + 1).padStart(2, "0");
57 const d = String(date.getDate()).padStart(2, "0");
58 return [y, m, d].join(separator);
59}
60
61function normalizeAuthorization(value = "") {
62 const token = String(value || "").trim();

Callers 3

constructorMethod · 0.70
getSignListMethod · 0.70
doSignMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected