'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.
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.