NSDate* now = [NSDate date];
// How get midnight time of now?
Ah, um, what about the startOfDay(for:)
method?
Keep in mind that the start of the day may not be midnight. Some time zones do daylight saving time switches at midnight, which means that midnight might not be a valid time in that time zone.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"