Get time of server

How do I get the time of the server in 12 hour format.

I tried using os.time but that returns the clients time.

Dont run OS.Time on the client then. Run it on the server.

I would recommend using the net library

Also make sure you are grabbing it server-side then send to players if you are doing it like that