Simple question:
How do I get the current year?
For example, its currently 2021.
Simple question:
How do I get the current year?
For example, its currently 2021.
Use os.date()
os.date("%Y") -- returns the current year
MY LORD AND SAVIOR HAS ARIVED
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
The site is not meant for code request actually try first.
I did, I cant get anything working
Ive tried os.time and DateTime