Top "Nsdate" questions

NSDate objects represent a single point in time.

How can I set an NSDate object to midnight?

I have an NSDate object and I want to set it to an arbitrary time (say, midnight) so that I …

ios datetime swift nsdate nscalendar
Difference between 2 dates in seconds ios

I have an app where content is displayed to the user. I now want to find out how many seconds …

ios nsdate nstimeinterval
Swift NSDateFormatter not using correct locale and format

This is my code: let currentDate = NSDate() let usDateFormat = NSDateFormatter() usDateFormat.dateFormat = NSDateFormatter.dateFormatFromTemplate("d MMMM y", options: 0, locale: NSLocale(…

ios swift nsdate nsdateformatter
Why isn't my time zone being saved into my NSDate?

I must initialize an NSDate object from NSString in objective-c. I do it like this: NSString *dateString = [[webSentence child:@"DateTime"].…

objective-c timezone nsdate nsdateformatter
NSDateFormatter and Time Zone issue?

I have a string with time in GMT and i want to make it according to the system time zone …

iphone objective-c timezone nsdate nsdateformatter
Core Data Save Error (NSValidationErrorKey, Cocoa error 1570) saving NSDate

I'm getting an error with saving to a Core data object in Xcode. Xcode says that the error is in …

xcode core-data nsdate
Convert a NSDate to milliseconds epoch time

I need to be able to convert a date to a time stamp, an epoch in milliseconds. All I see …

ios xcode nsdate epoch
Date/Time parsing in iOS: how to deal (or not deal) with timezones?

I have an ASP.NET MVC 3 website that communicates with my iOS app via JSON. As part of the objects …

objective-c ios nsdate nsdateformatter
How to calculate the age based on NSDate

how to calculate the age based on the birth date in this format 6/24/1976 mon/date/year...

ios date nsdate foundation
Current Week Start and End Date

I want to get the current week start and end date and I also want to use the previous week …

ios objective-c cocoa-touch nsdate