Top "Strtotime" questions

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

How to get date from week number & day number and year?

I'm trying to get the date from the week number, day number and year. For eg: week number = 52 day number = 4 (…

php function date datetime strtotime
PHP strtotime() function that accepts a format?

strtotime() in PHP works great if you can provide it with a date format it understands and can convert, but …

php datetime strtotime mktime
PHP - Using strtotime with a UK date format (dd-mm-yy)

Quite simply in PHP I have a date of 8th January 2011, in the format 08-01-11 - when I run …

php date strtotime
force php strtotime to use UTC

I've seen a few questions about this but not a clear answer... strtotime() will use the default timezone set for …

php timestamp strtotime
PHP date strtotime not working

I wrote this piece of code echo date("Y-m-d", strtotime($date, strtotime("+ " . $days . " days"))); $date = 2012-04-12 $days = 15 I am …

php date strtotime
PHP strtotime() function wrong by 1 hour?

I am converting dates and times into timestamps using PHP before they are inserted into my MySQL database. My problem …

php mysql strtotime unix-timestamp
PHP: strtotime is returning false for a future date?

here are some debug expressions i put into eclipse, if you don't believe me: "strtotime("2110-07-16 10:07:47")" = (boolean) false "strtotime("2110…

php datetime strtotime
setlocale(LC_ALL, 'it_IT'); set, but still dates in english

I have this code which through json_decode retrieves my latest tweets, their date, etc. <?php setlocale(LC_ALL, …

php date strtotime setlocale
Populate drop down form with months and year php

I am trying to create two drop downs with HTML and PHP. The first is an auto submit that sends …

php html date strtotime mktime
Converting date (with milliseconds) into timestamp

I have date format like '25 May 2016 10:45:53:567'. I want to convert into the time stamp. strtotime function returns empty. $…

php date timestamp strtotime milliseconds