LiquidTechnologies.XmlObjects Namespace / LxDateTime Structure / CompareTo Method
The LxDateTime to compare with
Determines how date/times with no timezone are treated

In This Topic
    CompareTo Method (LxDateTime)
    In This Topic
    Compares the current LxDateTime with date1
    Syntax
    'Declaration
     
    
    Public Function CompareTo( _
       ByVal date1 As LxDateTime, _
       ByVal defaultTimeZone As System.TimeZoneInfo _
    ) As LxDateTime.CompareResult
    public LxDateTime.CompareResult CompareTo( 
       LxDateTime date1,
       System.TimeZoneInfo defaultTimeZone
    )

    Parameters

    date1
    The LxDateTime to compare with
    defaultTimeZone
    Determines how date/times with no timezone are treated

    Return Value

    If the 2 LxDateTime have different Type then the result is LxDateTime.CompareResult.Indeterminate. The 2 values are compared taking the timezone into account. If a LxDateTime does not have a timezone then it is deemed to be a local time. If date1 is null, it is considered to be less than the current value.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also