Top "Strtotime" questions

PHP function for parsing about any English textual datetime description into a Unix timestamp

Determine If Business Is Open/Closed Based On Business Hours

My code works fine if the times are AM to PM (Ex: 11 AM - 10 PM), but if the locations hours …

php date datetime strtotime
How to get timestamp of current month, first day of month, zero hour

I am trying to get the timestamp of the first day of the month at 00:00:00. For example, the timestamp of …

php date timestamp strtotime
DateTime class vs. native PHP date-functions

The DateTime class sure has some handy methods and seems overall superior to the native PHP date functions like strtotime, …

php strtotime
how to get date for holidays using php

For example the: 3rd Monday of January for Martin Luther King Day 3rd Monday of February for Presidents' Day (Washington's …

php date calendar strtotime
Is there any difference in strtotime +day or +days?

Was googling this, but couldn't find the answer. Was wondering, if there is a difference in these two scripts? +3 day: …

php date strtotime
How do I fix this error in PHP: "A non well formed numeric value encountered"

Possible Duplicate: A non well formed numeric value encountered Why doesn't this work? echo gmdate('Y-m-d H:i:s',strtotime(…

php strtotime
php get microtime from date string

I am trying to get the time passed between two datetime strings (including milliseconds) example: $pageTime = strtotime("2012-04-23T16:08:14.9…

php strtotime microtime
Passing a Variable in strtotime() function in PHP

Similar to this question, but there was no answer to my specific issue. The current date is 2011-12-14, for …

php variables date strtotime
Check if timestamp is x hours old?

Simple question, but I couldn't find any related topics that match this exact scenario. Everything I found involved MySQL or …

php strtotime
How to get closest date compared to an array of dates in PHP

This post almost answered this question for me, but I have a specific need and didn't find what I sought …

php date strtotime