Checking if player joins on certain date

When a player joins a server, I want to be able to check if it is a certain date, how would I do this?

You should take a look at os.date here

2 Likes

To be more specific, you can check what day it is in the year using yday with os.date()
on the event of a player joining.

In your case, this is how I would write it:

game:GetService("Players").PlayerAdded:Connect(function()

local Yday = os.date("!*t")["yday"]
if (Yday == your date) then
--do what you want 
end

end)

There are only two formatStrings you can use for os.date(), which are !*t and *t.

2 Likes

Thank you guys for your help! I appreciate it!