views:

55

answers:

3

I will tell my idea. If the person enter his time of birth in this format "YYYY: MM: DD: HH:MM:SS" My application will display: Ur life timer is :"26:11:13:02:03:55"

+1  A: 

try this below url http://www.quackit.com/javascript/javascript_date_and_time_functions.cfm

VAC-Prabhu
Yeah, no need at all for ASP.NET if JavaScript is used.
Nelson
+1  A: 

What have you tried so far? What problems are you having? Generally speaking, this is just arithmetic. You start on the right and subtract, "borrowing" from the next-highest place as necessary.

You will probably need to deal with leap years, so do a google search for "number of days between dates" to get a correct formula for that - it's not hard, but lots of people get it wrong on their first try.

Mark Bessey
thank u man ..i forget to deal with leap year
Ayyappan.Anbalagan