MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / formatDate

Function formatDate

tests/loadtest/tools/dashboard/app.js:1494–1505  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1492}
1493
1494function formatDate(value) {
1495 const date = new Date(value);
1496 if (Number.isNaN(date.getTime())) {
1497 return value;
1498 }
1499 return new Intl.DateTimeFormat(undefined, {
1500 month: "short",
1501 day: "numeric",
1502 hour: "numeric",
1503 minute: "2-digit",
1504 }).format(date);
1505}
1506
1507function handleError(error) {
1508 console.error(error);

Callers 1

buildRunMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected