Is there a way to say how many days are left up to a certain given date: ie. Christmas.
I know of the method to get today's date.
And I know how to convert it into the PHP format.
And I know how to get it ti convert a given date into the same format.
But how do you say : Given Date - Today's Date = "so many days" ??
that 6-7 digit number.... how do you convert that into actual days?
Easy peasy???
Counting down the days....
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Counting down the days....
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: Counting down the days....
http://us3.php.net/manual/en/datetime.diff.php - calculates differences between two dates
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.