Search Results for

    Show / Hide Table of Contents

    Class DateExtensions

    Utilityclass for date functions

    Inheritance
    System.Object
    DateExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Common.Lib
    Assembly: ImageVault.Common.dll
    Syntax
    public static class DateExtensions

    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
    Remarks

    https://stackoverflow.com/a/7029464/419294

    In This Article
    Back to top (c) Meriworks 2002-2022