$today = time(); $dayX = mktime(date('G'), date('i'), 0, $d_month,$d_day, $d_year); return $txt1.' ' .round(($dayX-$today)/(3600*24),0).' '. $txt2;
This Droplet will display the number of days until an event.
$today = time(); $dayX = mktime(date('G'), date('i'), 0, $d_month,$d_day, $d_year); return $txt1.' ' .round(($dayX-$today)/(3600*24),0).' '. $txt2;
Required parameters
d_day=(day)
d_month=(mont)
d_year=(year)
txt1=(text_before)
txt2=(text_after)
Example
[[countdown?d_day=25&d_month=12&d_year=2018&txt1=Only&txt2=until it is Christmas]]
The parameters are:
d_day : the day of the event
d_month : the month of the event
d_year : the year of the event
txt1: the text that will prefix the countdown value
txt2: the text that will be after the countdown value