Os.date doesn't display the date

So I am currently making a nice little date & time UI for my game and the date will not show but the time shows just fine.

In the output it does give me an error:



while true do
	local Date = os.date()
	local UI = script.Parent
	local stringToFormat = "%A %B %Y"

	local result = os.date(stringToFormat, Date)
	UI.Text = result


Would the Date variable be os.time and not os.date?

That fixed it, thanks btw. I’m kinda new to how os works… :woozy_face:

It’s probably better to use DateTime instead.

Would there be a way to convert September for example to 9 and stuff?