Better HN
topnewbestaskshowjobs
Log inSign up

nordiknomad5

2 karma · joined May 28, 2025 (1y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

ok thanks for the clarification :)

comment 1y ago · link · parent

I am not sure why my brave browser does not console out the error as in the OP

console.log(new Date('2025/05/28').toDateString());

console.log(new Date('2025-05-28').toDateString());

console.log(new Date('2025-5-28').toDateString());

OutPut Below

Wed May 28 2025 debugger eval code:1:9 Wed May 28 2025 debugger eval code:2:9 Wed May 28 2025 debugger eval code:4:9