Click here to Skip to main content
13,664,996 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!
Posted 16-Nov-11 5:41am
Comments
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
 
good
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;
  Permalink  
Comments
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
Web04-2016 | 2.8.180810.1 | Last Updated 16 Nov 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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