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

extract content from a website
i have written a code that will grab the content from the index page..
i would like to know how c

True way to see if action was successful?
If this is a good way to see if action was successful to continue:

Code: function changeGa

Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

line breaks in between fetched file names
Hi,

I have this code:
Code: <?php
if($dir = opendir('files')){
while (($f

ALV List display - header width adjust
Hi,

I am using REUSE_ALV_LIST_DISPLAY for my ALV display.The width of the ALV varies for

registration form
first time posting. did some searches but didnt find exactly what i am looking for. dont flame cause

How to clone an SAP ECC using bacup tape on z/os?
We want to clone our production to a different SID using backup tape.

pls clear my confusion
Hi friends,

Pls solve my query .

what is the exact use of Scope Resolution Operator( i

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