Top "Strtotime" questions

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

Get previous month date range

I need help getting the previous months full date range in the following format: Y-m-d I have successfully been able …

php datetime date strtotime mktime
Get dates from next week in PHP

I want to echo the dates from Mo,Tu,We,Th,Fr,Sa,Su of the next week. My code …

php date strtotime
How to make strtotime parse dates in Australian (i.e. UK) format: dd/mm/yyyy?

I can't beleive I've never come across this one before. Basically, I'm parsing the text in human-created text documents and …

php datetime date locale strtotime
Check if current time is between two times, with the possibility of lapping days

I have a system that accepts user submissions, and upon receiving a submission the system will go through all timeslots …

php time compare strtotime
Best way to change Twitter-API datetime's to a timestamp

The Twitter API sends created_at datetimes like this: "created_at": "Mon Jul 25 05:51:34 +0000 2011", What's the best way to convert them …

php datetime timestamp strtotime
get strtotime of specific time in php

I want to get the timestamp of a day/time for eg 17/12/2014 8pm Currently I am doing $curtime = strtotime(date("…

php strtotime
Is string valid for use with strtotime()?

PHP has strtotime() which assumes the input given is a string that represents a valid time. Before using strtotime(), how …

php datetime strtotime
Why is strtotime() giving the wrong date?

I'm using the following code $t = strtotime('Saturday, 28 Dec, 2013'); echo date('d/m/Y H:i',$t); // output : 03/01/2015 20:13 $t = …

php strtotime