# Is there a way to get the system's current date and time?

**URL:** https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465
**Category:** Arcade
**Created:** [March 11, 2025, 1:30am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465 "2025-03-11T01:30:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)
#### Post date: [March 11, 2025, 1:30am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/1 "2025-03-11T01:30:15Z")

</div>

i mean i could just ask for the time and date every time a player boots the game but that would get tedius.  
@richard  
(also i dont mean hardware browser only)

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [March 11, 2025, 1:35am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/2 "2025-03-11T01:35:15Z")

</div>

Interesting thought. Arcade hardware would have no concept of “current date and time,” but it sounds like something that could be wedged into the fancy new `browser-events` extension.

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [March 11, 2025, 1:37am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/3 "2025-03-11T01:37:59Z")

</div>

No, because the hardware doesn’t support it. You could create a server and ask it with the websocket extension, but I don’t think that’s worth it.

New browser events sounds cool! Looking forward to this update!

---

<div class="post-metadata">

### Author: ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)
#### Post date: [March 11, 2025, 1:38am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/4 "2025-03-11T01:38:28Z")

</div>

yeah i assumed it wasn’t possible with hardware, but yeah i really hope its a new feature in the new extension that would be so nice!

---

<div class="post-metadata">

### Author: ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)
#### Post date: [March 11, 2025, 11:36am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/5 "2025-03-11T11:36:31Z")

</div>

i never thought about using websocket for it! honestly thats a great idea! (not only for time stuff but for other aspects such as multiplayer ofc)

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [March 11, 2025, 11:58am UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/6 "2025-03-11T11:58:32Z")

</div>

I’ve never looked at that extension. Seems like you could do a lot of cool stuff, like collect poll responses and stuff. Someone could definitely look at the code though, so you would have to do a lot of security stuff on the other end to make sure no one does bad stuff to your server.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [March 11, 2025, 4:59pm UTC](https://forum.makecode.com/t/is-there-a-way-to-get-the-systems-current-date-and-time/34465/7 "2025-03-11T16:59:30Z")

</div>

i actually added this to the browser-events extension (currently in beta) a few weeks ago.

here’s an [example beta project](http://arcade.makecode.com/beta#pub:_4YoKg03zzFMa). as always, I **recommend opening that beta link in a different browser or an incognito window**
