Click here to Skip to main content
13,834,480 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to display a countdown clock and the time taken from the database. I can do in any way? Can write a code segment illustrates help me? Thanks!
Not Active 16-Nov-11 11:45am
What have you tried? There are many possibilities, you need to provide more details and at least attempt something.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Make the difference of before and after execution using C#
DateTime before = DateTime.Now
// actual operation
DateTime after = DateTime.Now
DateTime timeTaken = after - before;
Not Active 16-Nov-11 11:53am
The OP asked to have the datetime from a database and to be displayed on an ASP.NET page. How does this answer the question?
violetqa 16-Nov-11 11:57am
The main problem here is that I want to display a countdown clock that the time was get from the database.Thanks you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190114.1 | Last Updated 16 Nov 2011
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100