JS datetime misbehaviour
v1
Share
Learn
Sign In
Sign Up
FILES
src
script.js
style.css
index.html
package.json
Items: 0
PACKAGES
Items: 0
Ruslan
✓
@ianberdin
Discord
index.html
style.css
script.js
1
2
3
4
const
dateStr
=
'1989-11-11T03:34'
;
let
date
=
new
Date
(
dateStr
)
;
console
.
log
(
date
.
toUTCString
(
)
)
;
console
.
log
(
+
date
)
;
Console
Website View
?
1
Rename
Clone
Save
Delete
Export
Set Default
Set Favorite
Share
Save
Copy Link
Share to web
Allow editing
Online chat
Help & support guide
Report abuse
Report a bug
Roadmap
Changelog
Windows App
MacOS App
Linux App
Keyboard shortcuts
Privacy
PlayCode v2025.5.15
Clear Logs
Clear on Run
Scroll to End
Restart
Ctrl + R
Hard Restart
Ctrl + ⇧ + R
Live View
Live View Delay
Loop Protection
Run on Opening
Deployment
Publish
https://1038204.playcode.io
Share to web
Share website with anyone
.playcode.io
Add custom domain
Need help to setup custom domain?
Click here
.
Zoom
White Background
100