Generating Dates in PHP
summary
Covers techniques for generating dates in PHP, including using PHP's DateTime and related APIs to create, manipulate and format date and time values. Shows practical approaches and code patterns to handle common problems like relative intervals, time zones, and recurring schedules.
AI-written summary · about
chapters (19)
- 0:00Date generation intro
- 1:04Classic PHP date functions
- 2:48mkTime explained
- 4:12Last day of previous month
- 5:36DateTime vs mkTime
- 6:20strtotime overview
- 7:26strtotime pitfalls
- 10:35DateTime object
- 12:20DateTime timezone traps
- 13:44DateTimeImmutable benefits
- 15:28DateTimeZone explained
- 19:45Timezone pitfalls
- 21:32DateInterval usage
- 22:34Last 10 days
- 23:16Last half week
- 24:27Avoid month-crossing weeks
- 25:27Version date bugs
- 27:16Best practices
- 28:43Q&A
