Jsp code for making countdown timer between current date and another date
I have developed a application in jsp. I need to achieve a count down timer(days,hours,minutes,seconds) between from date to todate, considering below cases.
All below are assumed
(1) I have 4 product, for each product i have different end date stored in Oracle in DB.
(2) I need to calculate time time remaining for the end date for each product, for eg;
Product 1 end date : 31/12/2012 (i need to show the time remaining for the end of 31/12/2012 from current time and date). Like wise i need to show for different products.and the countdown timer must be refresh free.plz help me out by posting CODE ...
How to achieve this. Solutions for this would be highly appreciated. Thanks in advance.