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

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

Aris, Netweaver BPM, Visual composer and X'app
Dear Experts,

Whats the relationship between the following components: Aris, Netweaver BP

Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

cURL and Sessions
Ohai.

So, I'm trying to cURL a bunch of things off of a page, and put them into a session. I'

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

Google voice
I currently have a form in html, but I want it in php so the information is not in the source code.<

need help with this contact form
I made this form and I need it to read the data and write the data to a table and its not working ca

Images outside webroot
Im hopeing someone can help me with this because i cant figure it out.I have setup an ASP.NET websit

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