Top "Nsdate" questions

NSDate objects represent a single point in time.

Swift 4 : Set Different Date and Time

I know how to get local date and time, but what I want to do is getting the date and …

ios swift nsdate nscalendar nsdatecomponents
Human friendly date descriptions with NSDate on iOS

I want to display NSDates in a "human-friendly way", such as "last week", or "a few days ago". Something similar …

cocoa-touch cocoa nsdate nsdateformatter
NSDate - one year ago, dilemma

I'm trying to do something that, for me, is a bit difficult. But I'm sure someone has some insight. Given …

iphone objective-c ios nsdate nscalendar
format a NSDate to DDMMYYYY?

I have to send a DDMMYYY date from a Date to communicate with an API. NSDateComponents *dateComponents; NSCalendar *gregorian; NSDate *…

ios nsdate nscalendar nsdatecomponents
NSDateComponents weekday doesn't show correct weekday?

I got a NSDate for example 1/6 -12 (Friday) and trying to find out what weekday it is. My week starts …

objective-c ios ios5 nsdate nsdatecomponents
Can't pass Date to NSPredicate(format: ...) without "as CVarArg"

Is this how I'm supposed to pass a Date to NSPredicate.init(format predicateFormat: String, arguments argList: CVaListPointer). let endDate = …

swift swift3 nsdate nspredicate foundation
NSDate dateFromString deprecated?

I'm trying to use the NSDate dateFromString method but I'm getting an warning and it's crashing the app. The code …

iphone xcode nsdate xcode3.2
Find the NSDate for next Monday

I want to get the date of the next Monday after the current date. So if today's date is 2013-08…

cocoa cocoa-touch nsdate date-arithmetic
NSCalendar, why does setting the firstWeekday doesn't effect calculation outcome?

i need to calculate the weekday for a given date, however, depending on the calendar a week can star on …

ios cocoa nsdate nscalendar
NSDate in full style but without year

I'm working with Objective C for iPhone and have a NSDate that I want to display in full style but …

iphone nsdate nsdateformatter