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.14.2018.
It is starting on June 14 2018. WOW!!!
COUNTDOWN WITH PHP
Now we will place the date month and year in the
mktime section of the php code below:
<?php $fifa_wc = mktime(0, 0, 0, 6, 14, 2018) ; $now = time () ; $result =($fifa_wc-$now) ; $daystoGO =(int) ($result/86400) ; print "World Cup 2018 - $daystoGO days to go!"; ?>
We have written “World Cup 2018 – ” 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 2018 - <script>document.write(daystoGO);</script> days to go!
RESULT: World Cup 2018 – -790 days to go!
You can add this same code for Durgapuja, Diwali, Christmas, or New Year countdown too!