Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ formatDate
Function
formatDate
packages/effect/src/Formatter.ts:211–217 ·
view source on GitHub ↗
(date: Date)
Source
from the content-addressed store, hash-verified
209
* @internal
210
*/
211
export
function
formatDate(date: Date): string {
212
try {
213
return
date.toISOString()
214
} catch {
215
return
"Invalid Date"
216
}
217
}
218
219
function
safeToString(input: any): string {
220
try {
Callers
1
recur
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected