Live clock and "time left" on page

I have a page which has a date/time stored in the database. Let's say "Table1.MyDateTime", which is stored in a label called "labelMyDateTime".

How can I...
(1) Display the LIVE SERVER TIME and have it update with each second AND
(2) Display the LIVE TIME UNTIL Table1.MyDateTime/labelMyDateTime (example: "3 days, 2 hours, 15 minutes left")

Again, both needs to update each second.

Please provide sample code.

Who is Participating?
xav056Connect With a Mentor Commented:
Date.Now would actually get you the server time to refresh every second you will have to use an update panel
check those two links out
RobertNZanaAuthor Commented:
The problem is that I'm using a modelpopupextender on the page and when they invoke the popup on the "tick" the popup disappears. So, that's the obstacle at the moment. Any other ideas?
look at conditionally updating the update panel
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

another idea
if the date is not in the pop up extender, disable the time untill the popup extender is dimissed
RobertNZanaAuthor Commented:
can u provide code for this?
just put your popup extender code in a different update panel and set the update mode on both to conditional
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.