Search Results for

    Show / Hide Table of Contents

    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
    Remarks

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

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