if i have a date 10/10/2009 and i wanted to add strtotime(+# months) to display an expiration date?
the 10/10/2009 is a start date which is imputed by the customer and the +# months is how ever many months were added for a specific product to display the expiration date.
how would i add the two to find the expiration date?
...
I have two dates stored in a mysql database (Type = date). For example -
Date 1 = 2010-09-20
Date 2 = 2010-10-20
I want to calculate the number of days between these two dates. So have tried this -
$number_days = (strtotime($date2) - strtotime($date1) / (60 * 60 * 24));
But this returns 49
How so?
-------------------------------...
Hi there
I have 2 unix timestamps, Im in AsiaPacific/Auckland timezone (GMT+12, DaylightSavings = GMT+13)
I want to calculate the number of days interval between 2 timestamps, where one is inside daylight savings time and one is not.
My example dates are
7 Feb 2009 (1233925200) to 21 September 2010 (1284985360) (not including 21st)
s...
I have found a proper solution to my "problem" but even after reading mysql pages, I don't understand the logic behind it.
I currently store registration information in my system in a "datetime" formatted field in one of my tables (YYYY-MM-DD hh:mm:ss).
When I want to display the data on one of my php pages, simply posting the exact fi...
I am doing some large timestamp-list iterations: Putting them in tables with date-ranges, and grouping them by ranges.
In order to do that, I found strtotime() a very helpfull function, but I am worried about its performance.
For example, a function that loops over a list of weeks (say, week 49 to 05) and has to decide the beginning of...
I have a Date/Time string from facebook graph that i need to convert to a readable date time.
2010-09-17T04:07:36+0000
How can I format it to GMT+8 using php to look like this below.
17 September at 12:07
...
Using the following if statement I am trying to check whether the day of the week is Friday
if(($uur < 12) && ($min < 30) && ($datum == date('Y-m-d', strtotime('Friday'))))
{
$proceed = FALSE;
$errorWoensdagVrijdag = "<div id='row_form_dropdown'>Error Message</div>";
}
The dates are being inserted using a form. Everything is...
I tried
echo strtotime('129:00');
but it will have an empty output.
This
echo strtotime('03:00');
will have 1288339200 as the output.
I guess strtotime() won't accept huge values?? What's the alternative for strtotime() that will accept 129:00.
...