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

Function formatDate

wxapp/parkson.js:52–57  ·  view source on GitHub ↗
(date = new Date(), separator = "-")

Source from the content-addressed store, hash-verified

50}
51
52function formatDate(date = new Date(), separator = "-") {
53 const y = date.getFullYear();
54 const m = String(date.getMonth() + 1).padStart(2, "0");
55 const d = String(date.getDate()).padStart(2, "0");
56 return [y, m, d].join(separator);
57}
58
59class Task {
60 constructor(openid) {

Callers 2

getSignListMethod · 0.70
doSignMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected