Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
[no name] 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

Make the difference of before and after execution using C#
C#
DateTime before = DateTime.Now
// actual operation
DateTime after = DateTime.Now
DateTime timeTaken = after - before;
 
Share this answer
 
Comments
[no name] 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900