I am writing an application in C#, and I would love to know how you can get the number of seconds in each month. For example, today, February the 3th, I would love to have:
January: 2678400
February: 264000
Basically, I would love to know how many seconds in the past months and how many seconds in the current month at the current time (how many seconds so far).
Any code snippets would be appreciated....
You can subtract two dates from each other and get the total seconds between them.
The result of subtracting two dates from each other is a
TimeSpan
.