TimeUtils.Truncate

Truncates a DateTime value to the nearest partial value.

public static DateTime Truncate(DateTime date,
	DateTimeResolution resolution)

Parameters

date

resolution

Remarks

From: http://stackoverflow.com/questions/1004698/how-to-truncate-milliseconds-off-of-a-net-datetime


See also:

Class TimeUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic