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

rename the file
File.txt

Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

How would I do "Users not logged in since *** delete them"
I know how I would set this up, and delete the user roughly.
I'll create a table called "Use

Appending GET data with form submition
Okay, what I'm trying to do is to use a form to append an already existing GET data string.

I

Word filter problem
Hello,

im trying to make a filter for words inputted in to my website but i want to store the

Help with some dates
I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009

PHP Display Telephone Number On Referrer
I have used the php below to show a different telephone number in the header of the site depending u

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

using a loop help
Hi guys , i need some help. I have this loop :
while ($row = mysql_fetch_assoc($Result)) { ?&

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

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