Top "Nsdate" questions

NSDate objects represent a single point in time.

All dates between two Date objects (Swift)

I’m creating a date using NSDateComponents(). let startDate = NSDateComponents() startDate.year = 2015 startDate.month = 9 startDate.day = 1 let calendar = NSCalendar.currentCalendar() …

swift nsdate nsdateformatter nscalendar nsdatecomponents
NSDateFormatter return wrong date + Swift

Code : let dateString = "2016-04-02" var formatter: NSDateFormatter = NSDateFormatter() formatter.timeZone = NSTimeZone(abbreviation: "GMT +3:00") formatter.dateFormat = "yyyy-MM-dd" println("dateString: \(dateString)") …

swift nsdate nsdateformatter string-to-datetime
Swift 3: Date vs NSDate?

What is the difference between the NS and non NS classes? Particularly NSDate vs Date? Does NS represent some type …

swift nsdate
Subtract minutes from NSDate

I want to subtract some minutes 15 min 10 min etc., And i am having date object with time now i want …

ios nsdate nstimeinterval
How to set time on NSDate?

I want to set the NSDate time with my desired hours:minutes:seconds currently im working with NSDate component but …

objective-c nsdate nsdatecomponent
NSDate for first day of the month

This is quite a simple concept, but as of yet I have been unable to find an elegant (and calendar …

iphone cocoa-touch nsdate nscalendar
Unable to format UTC date with NSDateFormatter

I have the following date: 2011-10-20T01:10:50Z I would like it to be formatted to "M/d/yy …

iphone objective-c cocoa-touch nsdate nsdateformatter
How to convert Unix timestamp into Swift NSDate object?

I'm getting dates as Unix timestamps through my API and I want to convert them into NSDate objects in Swift. …

swift nsdate unix-timestamp
Nil NSDate when trying to get date from UTC string in zulu time

Writing an iPhone app in Objective-C, I have a date in string form (in UTC format, with a Z on …

iphone objective-c nsdate utc nsdateformatter
Sorting NSMutableArray By Object's Property

So this is a rather basic question regarding the best way to sort an NSMutableArray of custom objects. I have …

iphone sorting nsmutablearray nsdate