0
kicks
Rounding a DateTime object to a defined number of minutes
ounding a DateTime up (or down) to the nearest number of minutes seems a simple requirement but is surprisingly unintuitive due to the relationships and different properties of DateTime and TimeSpan classes. I've come across some pretty dreadful examples on the web, so thought I'd post a much simp...