MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / parseDate

Function parseDate

apps/web/utilities/seo/utils/parseDate.ts:1–7  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

1export function parseDate(data: any) {
2 try {
3 return new Date(data).toISOString();
4 } catch (error) {
5 return data;
6 }
7}

Callers 1

buildNameTextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected