Link to home
Start Free TrialLog in
Avatar of skij
skijFlag for Canada

asked on

ASP.NET / C#: Best way to add and subtract hours from the time of day

Using ASP.NET/C#, what is the best way to add and subtract from the time of day in 24 hour format?

For example, 22 + 2 should = 0 and 3 - 5 should equal 22 because 22:00 plus two hours is midnight and five hours before 3:00 am is 22:00.
ASKER CERTIFIED SOLUTION
Avatar of Russ Suter
Russ Suter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skij

ASKER