Lets see how to do this in two ways.
First we get the exact date from the Official website. In numeric format the date will be 6.12.2014.
It is starting on June 12 2014. WOW!!!
COUNTDOWN WITH PHP
Now we will place the date month and year in the
mktime section of the php code below:
<?php $fifa2014 = mktime(0, 0, 0, 6, 12, 2014) ; $now = time () ; $result =($fifa2014-$now) ; $daystoGO =(int) ($result/86400) ; print "World Cup 2014 - $daystoGO days to go!"; ?>
We have written “World Cup 2014 – ” before
$daystoGO in the code, you can write some more text or change it as you like.
You can also add this section to your page before the end tag, to keep the page content clean!
And add the following section to the area where you want the countdown output.
World Cup 2014 - <script>document.write(daystoGO);</script> days to go!
RESULT: World Cup 2014 – 381 days to go!
You can add this same code for Durgapuja, Diwali, Christmas, or New Year countdown too!