MCPcopy Create free account
hub / github.com/adrianhajdin/threads / formatDateString

Function formatDateString

lib/utils.ts:16–32  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

14
15// created by chatgpt
16export function formatDateString(dateString: string) {
17 const options: Intl.DateTimeFormatOptions = {
18 year: "numeric",
19 month: "short",
20 day: "numeric",
21 };
22
23 const date = new Date(dateString);
24 const formattedDate = date.toLocaleDateString(undefined, options);
25
26 const time = date.toLocaleTimeString([], {
27 hour: "numeric",
28 minute: "2-digit",
29 });
30
31 return `${time} - ${formattedDate}`;
32}
33
34// created by chatgpt
35export function formatThreadCount(count: number): string {

Callers 1

ThreadCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…