MCPcopy
hub / github.com/stackryze/FreeDomains / formatDate

Function formatDate

src/pages/Whois.jsx:8–11  ·  view source on GitHub ↗
(dateStr)

Source from the content-addressed store, hash-verified

6const API_BASE = import.meta.env.VITE_API_URL || "http://localhost:5000";
7
8function formatDate(dateStr) {
9 if (!dateStr) return "N/A";
10 return new Date(dateStr).toISOString().replace("T", " ").slice(0, 19) + "Z";
11}
12
13export function Whois() {
14 const [query, setQuery] = useState("");

Callers 2

buildWhoisTextFunction · 0.70
WhoisFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected