Overview
Explore PHP date and time manipulation using DateTime objects in this 21-minute tutorial. Master comparing dates, calculating intervals, formatting output, working with DateInterval and DateTimeImmutable classes, and handling different timezones. Gain practical skills to effectively manage temporal data in PHP applications, enhancing your ability to create robust time-based functionalities.
Syllabus
Introduction / overview
Setup / composer requirements
DateTime class
Comparing dates
Formatting dates
Calculating the difference interval between two dates
DateInterval class
DateTimeImmutable
Timezones
Taught by
Gary Clarke