adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / DateTimeHandling Class / Combine Method


In This Topic
    Combine Method
    In This Topic
    Combines two DateTime values, using the date from one value and the time from the other.
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Shared Function Combine( _
       ByVal datePortion As Date, _
       ByVal timePortion As Date _
    ) As Date
    [Pure()]
    public static DateTime Combine( 
       DateTime datePortion,
       DateTime timePortion
    )
    [Pure()]
    public:
    static DateTime Combine( 
       DateTime datePortion,
       DateTime timePortion
    ) 

    Parameters

    datePortion
    timePortion

    Return Value

    A new DateTime value with the date set to the date from the datePortion, the hours and minutes set from the time portion, and seconds and milliseconds set to 0.
    See Also