NSCalendar.CompareDate(NSDate, NSDate, NSCalendarUnit) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Foundation.Export("compareDate:toDate:toUnitGranularity:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSComparisonResult CompareDate (Foundation.NSDate date1, Foundation.NSDate date2, Foundation.NSCalendarUnit granularity);
abstract member CompareDate : Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarUnit -> Foundation.NSComparisonResult
override this.CompareDate : Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarUnit -> Foundation.NSComparisonResult
Parameters
- date1
- NSDate
- date2
- NSDate
- granularity
- NSCalendarUnit
Returns
- Attributes