How to calculate days from variable date?


Posted on 16th Feb 2014 07:03 pm by admin

This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:

Code: <?php
$mydate = "";
Did you know?Explore Trending and Topic pages for more stories like this.
$daysaway = 400;
$startdate = "5/5/2005";

//I need how to get the date that was 400 days ago

print "$mydate was $daysaway days from $startdate.";
?>
No comments posted yet

Your Answer:

Login to answer
223 Like 50 Dislike
Previous forums Next forums
Other forums

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

Material xxx does not exist in plant xxx
Dear All,

I am working for a steel project which is repetitive manufacturing.

UDS 4.0 Datatype issue
UDS 4.0.322 -- connecting to NI Labview 9.0

When using connection method: Cache with live

help countdown timers
hello every one,

I'd like to know how to insert many countdowns in the same page.
The dura

How do i use vars in an array
Hiya peeps!

How do I use a var in an array. You will see $id but it isnt working.


default SAP userid
hi,, I just like to know if it is ok to use the default SAP user id (SAP*)?

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

Help with page encoding issue and weird characters
I'm trying to write a screen scraper and when I pull out the lines of the html file that I'm interes

selectbox+database connection retrive problem
Code: [Select]
<tr>
<th align="left" scope="c

scandir clients directory
hi,
how can i scandir the clients directory? i need a script that when i click a button it will u

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash