How to use DateTime

i understand oop but ig im not perfect ima read it when i get the time to