When a website or shopping site needs to run a campaign that ends at some point in time, a countdown timer is what you need. First, get the current time in the current time zone, then get the time of the end date; subtracting the two times gives you the campaign duration. 

