Top "Strtotime" questions

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

$date + 1 year?

I'm trying to get a date that is one year from the date I specify. My code looks like this: $…

php strtotime
Adding three months to a date in PHP

I have a variable called $effectiveDate containing the date 2012-03-26. I am trying to add three months to this …

php date strtotime
PHP, Get tomorrows date from date

I have a PHP date in the form of 2013-01-22 and I want to get tomorrows date in the …

php date datetime strtotime
Adding 30 minutes to time formatted as H:i in PHP

Having a nightmare at the moment and just can't see why it isn't working I have a value in the …

php strtotime
How to get previous month and year relative to today, using strtotime and date?

I need to get previous month and year, relative to current date. However, see following example. // Today is 2011-03-30 …

php date strtotime
PHP Converting Integer to Date, reverse of strtotime

<?php echo strtotime("2014-01-01 00:00:01")."<hr>"; // output is 1388516401 ?> I am surprised if it can be reverse. …

php date time type-conversion strtotime
PHP strtotime +1 month adding an extra month

I have a simple variable that adds one month to today: $endOfCycle = date("Y-m", strtotime("+1 month")); Today is January 2013, so …

php date strtotime
adding 30 minutes to datetime php/mysql

I have a datetime field (endTime) in mysql. I use gmdate() to populate this endTime field. The value stored is …

php mysql datetime strtotime
date() method, "A non well formed numeric value encountered" does not want to format a date passed in $_POST

I unfortunately can't use DateTime() as the server this project is on is running PHP v.5.2. the line in question: $…

php date strtotime
PHP: How to check if a date is today, yesterday or tomorrow

I would like to check, if a date is today, tomorrow, yesterday or else. But my code doesn't work. Code: $…

php date time strtotime