What is the best way to save player join date?

I want to save a player join date but there are too many options on the table:

  • Tick
  • DateTime
  • Os.time
  • And some others

Which one do I use? And can I convert os.time to datetime?

1 Like

You should use os.time, and you can easily convert it into a date and time using os.date.

print(os.date(%H:%M:%S)) -- Prints your time in HH:MM:SS format
print(os.date(%x)) -- Prints the date 11/03/2021

You can learn more about format strings here