Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NDateTimeTextBox Class / SetDateTime Method


In This Topic
    SetDateTime Method
    In This Topic
    Sets the specified unit of the given date/time to the given amount and returns the result. Note that no validation is performed and this methods throws and exception if an invalid date is constructed.
    Syntax
    'Declaration
     
    
    Protected Overridable Function SetDateTime( _
       ByVal date As System.Date, _
       ByVal unit As ENDateTimeUnit, _
       ByVal value As System.Integer _
    ) As System.Date
    'Usage
     
    
    Dim instance As NDateTimeTextBox
    Dim date As System.Date
    Dim unit As ENDateTimeUnit
    Dim value As System.Integer
    Dim value As System.Date
     
    value = instance.SetDateTime(date, unit, value)
    protected virtual System.DateTime SetDateTime( 
       System.DateTime date,
       ENDateTimeUnit unit,
       System.int value
    )

    Parameters

    date
    unit
    value
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also