Round Numbers. Make the Time numbers nice

so you are looking for a round to the closest 5 segement and not 15?

tsInit.AddMinutes(- tsInit.Minute).AddMinutes(Math.Round(tsInit.Minute / 5) * 5).toString(“HH:mm”)

3 Likes