Returns the first moment of a given date as a date instance.
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The date for which to perform the calculation.
NSDate instance representing the first moment date of the given date.
For example, passing
[NSDate date] for the
date parameter would give you the start of “today.”
If there were two midnights, this method returns the first. If there was none, it returns the first moment that did exist.