You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to make a log history of purchases made by players.
What is the issue? Include screenshots / videos if possible!
I need to know how to use os.date so I can make the logs say the date and time of purchase from the player.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked on the devfroum but it doesnt explain it well.
-- September 16th, 1998 at 11:48:10 PM:
local stringToFormat = "Today is %x, which is a %A, and the time is %X."
local timestamp = 906000490
-- The specifiers %x, %A, and %X are replaced with their values in stringToFormat:
local result = os.date(stringToFormat, timestamp)
print(result)
--> Today is 09/16/98, which is a Wednesday, and the time is 22:48:10.