How To Get Elapsed Seconds Between Two Dates



TODO: 

Have you ever wanted to get the elapsed seconds between 2 dates?

 

SOLUTION:

int elapsed_seconds = DateTime.Now.Subtract(MyDate).TotalSeconds;

 

NOTES:

There are no notes ont his topic



Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading