3 ms·
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-
by nordiknomad5 1y ago
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
- dust42 1y agoIf your local timezone is GMT>=0, then you wont see it. A special form of a Heisenbug that you only see easily when located in the Americas, while when in Europe/Africa/Asia it is invisible unless you switch your local time zone to any GMT-X value.
- nordiknomad5 1y agook thanks for the clarification :)