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