How to calculate countdown
Posted: Tue Jun 22, 2010 3:23 pm
Hello friends,
I am building a website for vacancies, where people or companies come and post their vacancies. one of the fields in the form is for the person posting vacancy to select how long does he want the vacancy to be online may be 2,3,4,5 or 6 weeks from the day of posting. I know how to calculate number of days between 2 dates. but the problems is that assuming the poster wants the vacancy to be online for 2 weeks how will i do the count down to start counting from the day the vacancy is posted and be showing the number of days left for the vacancy when any visitor view the vacancy detail.
Thanks for always being there.
I am building a website for vacancies, where people or companies come and post their vacancies. one of the fields in the form is for the person posting vacancy to select how long does he want the vacancy to be online may be 2,3,4,5 or 6 weeks from the day of posting. I know how to calculate number of days between 2 dates. but the problems is that assuming the poster wants the vacancy to be online for 2 weeks how will i do the count down to start counting from the day the vacancy is posted and be showing the number of days left for the vacancy when any visitor view the vacancy detail.
Thanks for always being there.