Top "Strtotime" questions

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

Convert this string to timestamp PHP

I have this string: "13/10 15:00" and I would like to convert it to timestamp but when I do this: $timestamp = strtotime("13/10 15:00"); …

php timestamp strtotime date-conversion
PHP date showing '1970-01-01 ' after conversion

I have a form in which date format is dd/mm/yyyy . For searching database , I hanverted the date format …

php mysql date strtotime
Given a Unix timestamp, how to get beginning and end of that day?

I have a Unix timestamp like this: $timestamp=1330581600 How do I get the beginning of the day and the end …

php timestamp strtotime unix-timestamp
Simplest way to increment a date in PHP?

Say I have a string coming in, "2007-02-28", what's the simplest code I could write to turn that into "2007…

php datetime date strtotime date-manipulation
PHP Check if current time is before specified time

I need to check in PHP if the current time is before 2pm that day. I've done this with strtotime …

php date strtotime
Current date + 2 months

I wrote this piece of code in order to display the current date + 2 months : <?php $date = date("d/m/…

php date strtotime
Check if variable is a valid date with PHP

I am working on a script that will import some data from a CSV file. As I am doing this …

php date strtotime
php date less than another date

given this kind of date object date("m/d/Y", strtotime($numerical." ".$day." of ".date("F"))) where it may give …

php date compare strtotime
php strtotime "last monday" if today is monday?

I want to use strtotime("last Monday"). The thing is, if today IS MONDAY, what does it return? It seems …

php datetime strtotime
Adding days to specific day

Many examples are about adding days to this day. But how to do it, if I have different starding day? …

php strtotime