Top "Nsdate" questions

NSDate objects represent a single point in time.

iPhone: How to fix a cheat based on changing the device's date? Is there a server I can get the time from?

I have an iPhone game that dispenses in-game currency over time, and someone discovered that you can change the date …

iphone datetime time nsdate ipod
NSNumber from NSDate

I'm attempting to get around a date validation that refuses to take anything earlier than tomorrow. So far I have …

objective-c xcode nsdate nsnumber
NSDateComponents to NSDate - Swift

I have this function : private func getCurrentDateComponent() -> NSDateComponents { let date = NSDate() let calendar = NSCalendar.currentCalendar() let components = calendar.…

ios swift nsdate nsdatecomponents
How to send a localNotification at a specific time everyday, even if that time has passed?

I have this code which runs a notification everyday at 7am, it gets the current date and then runs the …

ios swift nsdate localnotification
Set NSDate 0 seconds in swift

I'm trying to get NSDate from UIDatePicker, but it constantly returns me a date time with trailing 20 seconds. How can …

ios swift nsdate nsdatepicker
How to get dates of current month in Objective c?

I am developing a app which uses the date, month, year. I want the current month dates,because current month …

ios objective-c nsdate nsdatecomponents
[NSCFString timeIntervalSinceReferenceDate]: unrecognized selector sent to instance

I would like to compare difference between two dates, but with the code below I got the error "[NSCFString timeIntervalSinceReferenceDate]: …

ios nsdate nscalendar nstimeinterval
Parsing a RFC 822 date with NSDateFormatter

I'm using a NSDateFormatter to parse a RFC 822 date on the iPhone. However, there is no way to specify optional …

iphone parsing date nsdate nsdateformatter
NSDate, NSCalendar and NSDateComponents timing

NSDate *today = [NSDate date]; NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; [calendar setTimeZone:[NSTimeZone timeZoneWithName:@"GMT+2"]]; NSDateComponents *dateComponents = [calendar components:(NSDayCalendarUnit | …

iphone cocoa nsdate nscalendar nsdatecomponents
Trying to use NSDate for time only

I'm struggling to find a way to use NSDate for time only purposes. I was trying to do the following …

ios objective-c xcode nsdate nsdatecomponents