Westwind Utilities
TimeUtils.RoundDateToMinuteInterval
Table of Contents
On this page:

TimeUtils.RoundDateToMinuteInterval

Rounds a date value to a given minute interval

public static decimal RoundDateToMinuteInterval(decimal hours, int minuteInterval, 
			RoundingDirection direction)

Parameters

hours
minuteInterval
Minutes to round up or down to

direction

Overloads

public static DateTime RoundDateToMinuteInterval(DateTime time, int minuteInterval, RoundingDirection direction)

© West Wind Technologies, 2026 • updated: Jan 30, 2026
Comment or report problem with topic