time left for an event in days using current time


End Time is (1638821740 ) : 06-Dec-2021 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

* indicates required
Subscribe to plus2net

    plus2net.com







    Post your comments , suggestion , error , requirements etc here




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer