MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / getCurrentDate

Method getCurrentDate

mini_program/common/Tools.js:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 getCurrentDate() {
23 const date = new Date();
24 const year = date.getFullYear()
25 const month = date.getMonth() + 1
26 const day = date.getDate()
27 return [year, month, day].join('-')
28 }
29
30 getCurrentTime() {
31 const date = new Date();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected