Hi, was wondering how i can get the current year
How can i get the current year?
I dont wanna just write the year every year bc i will most likely forget
Thanks!
Hi, was wondering how i can get the current year
How can i get the current year?
I dont wanna just write the year every year bc i will most likely forget
Thanks!
A local script can do that:
local date = os.date("*t")
priny(date) -- prints the table, you can check what things you can get
local year = data["year"] -- the year
Local script:
os.date("*t").year
(os.date("%Y"))
This will give you the current year.
tonumber(os.date("%Y"))
is epic too