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

Function todayText

wxapp/dasenlin.js:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function todayText() {
55 const d = new Date();
56 const y = d.getFullYear();
57 const m = String(d.getMonth() + 1).padStart(2, "0");
58 const day = String(d.getDate()).padStart(2, "0");
59 return `${y}-${m}-${day}`;
60}
61
62function maskPhone(phone = "") {
63 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");

Callers 1

isSignedTodayMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected