time left for an event in days using current time
End Time is (1728764140 ) : 12-Oct-2024 20:15:40
Here is the code which create the balance time value and pass the value to display_c(value) function.
<?Php
$y=date('Y');
$m=date('m');
$d=date('d')+1; // Added one day
$end_time=mktime(20,15,40,$m,$d,$y); // Hour,minute,second, month,day,year
$balance=$end_time-strtotime('now');
echo "<body onload=display_c($balance);>";
?>
Tutorial on Countdown ( full script ) →
« Date Reference
Realtime Clock using JavaScript →
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
plus2net.com