Date and time utilities in PHP
To check to see if we have gone past a specific date:
if (new DateTime() > new DateTime("2022-03-09 09:11:00")) { # current time is greater than 2010-05-15 16:00:00 # in other words, 2010-05-15 16:00:00 has passed }
Wednesday 9 March 2022, 688 views
Next post: General PHP code snippets Previous post: How to get rid of “episodes and shows” from Spotify:
Programming index
- Scraping the UK charts – a 2025 guide
- How to post text and images to Bluesky using PHP
- General PHP code snippets
- Date and time utilities in PHP
- How to get rid of “episodes and shows” from Spotify:
- Example of character counter using Bootstrap and jQuery
- How to create a simple Twitter bot
- Finding the first and last day of a month in PHP
- Javascript countdown timer
- Creating a WordPress theme from scratch
Leave a Reply