Date time system like Rise of Nations

Hello! i’ve been trying to make a grand strategy game(more for learning purposes), but i’ve come to a roadblock, i want to create a date time system like the one used in Hyperant’s Rise of Nations, like this:

But frankly, i have no idea on how to even start this, because not only that, but every day would trigger a tick to the server for it to update stuff, while i think i’m able to make the tick part of the system, i have no clue on how to make it “compatible” with the date system.

Does anyone know how would i proceed on making this?

Wouldn’t a simple while loop suffice? You can just have a task.wait() within that waits for however long you want the day to last. Then every time the loop iterates you just update the date and whatever else you want updated with new days.