NOW rounded to nearest half hour code example Example: round to nearest half Math.Round(value * 2, MidpointRounding.AwayFromZero) / 2