How do i get the current year?

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
1 Like

Local script:

os.date("*t").year

1 Like

(os.date("%Y"))

This will give you the current year.

1 Like

tonumber(os.date("%Y"))
is epic too

1 Like