MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / getDateString

Function getDateString

src/utils/misc.ts:15–22  ·  view source on GitHub ↗
(timeStamp = Date.now())

Source from the content-addressed store, hash-verified

13};
14
15export const getDateString = (timeStamp = Date.now()): string => {
16 const dateOptions: Intl.DateTimeFormatOptions = {
17 year: "numeric",
18 month: "long",
19 day: "numeric",
20 };
21 return new Date(timeStamp).toLocaleDateString(undefined, dateOptions);
22};

Callers 2

PaymentHistoryTableFunction · 0.90
AccountViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected