Class DateExtensions
Utilityclass for date functions
Inheritance
System.Object
DateExtensions
Namespace: ImageVault.Common.Lib
Assembly: ImageVault.Common.dll
Syntax
public static class DateExtensions : Object
Methods
RoundUp(DateTime, TimeSpan)
Rounds up to the nearest TimeSpan
Declaration
public static DateTime RoundUp(this DateTime dt, TimeSpan d)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | dt | Time to round |
System.TimeSpan | d | TimeSpan to round to |
Returns
Type | Description |
---|---|
System.DateTime |