EnolaKotrotsos
asked on
getting seconds passed since ....
Goodday,
How do I get the number of seconds passed since a certain date (say since 01-01-2006)?
Thanks!
Marco
How do I get the number of seconds passed since a certain date (say since 01-01-2006)?
Thanks!
Marco
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hey thanks people!.
Marco
Marco
e.g.
DateTime SomeDate = Whatever date you need;
TimeSpan ts = DateTime.Now - SomeDate;
Console.Write( "{0}", ts.TotalSecconds );