Is it possible to get the current YYYY-MM-DDTHH:MM:SS.SSSZ time in roblox?

Hey everyone! I’m doing some things with Discord webhooks in Roblox Studio, is there a way to get the current YYYY-MM-DDTHH:MM:SS.SSSZ time within Roblox? I’m trying to set a timestamp as this.
An example where this is used:

I was thinking os.time() could be used for this, however not sure how it could be done.
Anything helps, thanks!

1 Like

os.date has a formatting function for this.

3 Likes
os.date("%Y-%m-%dT%H:%m:%S.000Z", os.time())

os.time() gets the UTC date, so you don’t have to worry about that.

2 Likes