Javascript Get Current Datetime in UTC

Oct 31, 2019
const now = new Date()  // Thu Oct 31 2019 11:52:17 GMT+0800 (Malaysia Time) {}now.toISOString()       // 2019-10-31T03:52:17.775Z

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.