MCPcopy Create free account
hub / github.com/Y80/bmm / formatDate

Function formatDate

scripts/list-users.mjs:6–9  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

4import { checkEnvs, declareLocalType, exitWithDbClose, loadEnv, testDbConnect } from './utils.mjs'
5
6function formatDate(date) {
7 if (!(date instanceof Date)) return '-'
8 return date.toLocaleString('zh-CN', { hour12: false })
9}
10
11async function main() {
12 await loadEnv()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected