PHP·98 questionsHow to work with date and time?SaveUpdated: 2026-08-31Answer•date('Y-m-d H:i:s') — formatting.•time() — Unix timestamp.•strtotime('next Monday').•DateTime class: new DateTime().•DateInterval for differences.Ask AI to clarifyWas this answer helpful?HelpfulNot helpfulSuggest an improvement