Hello there developer, if you have ever been wondering how to get a players Roblox join date but you haven’t be able to? Well I have the solution for you.
I will show the code for both Local and Server sided scripts so you’re able to use both or just one when needed!
Local
You can use this code in a LocalScript to print out the players join date!
local Player = game.Players.LocalPlayer
local joinTime = os.time() - (Player.AccountAge*86400)
local joinDate = os.date("!*t", joinTime)
print(joinDate.day, joinDate.month, joinDate.year)
Thats how simple it is!
Server
game.Players.PlayerAdded:Connect(function(Player)
local joinTime = os.time() - (Player.AccountAge*86400)
local joinDate = os.date("!*t", joinTime)
print(joinDate.day, joinDate.month, joinDate.year)
end)
You may use this however you like, I hope you found this helpful!
-TaxFraudBruh