Ive been looking for a proper rounding mechanism but nothing I find seems to be exactly what I need.
I need to round up and round down seperately and I also need to acco
Here is a fast way to truncate (round down)
var now = DateTime.Now; var nowTicks = now.Ticks; //removing the nanoseconds, miliseconds, and seconds from the nowTicks var lastMinute = new DateTime(nowTicks - (nowTicks % (1000*1000*10*60)));