MCPcopy Create free account
hub / github.com/deta/surf / parseTextIntoISOString

Function parseTextIntoISOString

packages/utils/src/data/time.ts:122–128  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

120}
121
122export const parseTextIntoISOString = (dateString: string) => {
123 try {
124 return new Date(dateString).toISOString()
125 } catch (e) {
126 return null
127 }
128}

Callers 8

getPageMethod · 0.90
normalizeMessageMethod · 0.90
normalizeVideoMethod · 0.90
normalizePostMethod · 0.90
parseTweetMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected