Let's say that DateTime.Now is 13:26. How do I get 12:00 from this? I need to find the latest full hour and then go back further one hour. Or go back one hour and then find the latest full hour, whichever way... How do I achieve this in C#?
I tried now.AddHours(-1); to remove the first hour, but I don't know how to go back to 00 minutes. Is there a good and clean way of doing this?