Liquid XML Data Binder
LiquidTechnologies.XmlObjects Namespace / LxDateTime Structure / Compare Method
The LxDateTime to compare with
The LxDateTime to compare with
Determines how date/times with no timezone are treated

In This Topic
    Compare Method
    In This Topic
    Compares 2 LxDateTime objects
    Syntax
    'Declaration
     
    
    Public Shared Function Compare( _
       ByVal date1 As LxDateTime, _
       ByVal date2 As LxDateTime, _
       ByVal defaultTimeZone As System.TimeZoneInfo _
    ) As LxDateTime.CompareResult
    public static LxDateTime.CompareResult Compare( 
       LxDateTime date1,
       LxDateTime date2,
       System.TimeZoneInfo defaultTimeZone
    )

    Parameters

    date1
    The LxDateTime to compare with
    date2
    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 and date2 is null then LxDateTime.CompareResult.Equal is returned.
    If date1 is null then LxDateTime.CompareResult.LessThan is returned.
    If date2 is null then LxDateTime.CompareResult.GreaterThan is returned.
    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