Top "Nsdate" questions

NSDate objects represent a single point in time.

Get current NSDate in timestamp format

I have a basic method which gets the current time and sets it in a string. However, how can I …

cocoa cocoa-touch nsdate nsdateformatter unix-timestamp
iOS: Convert UTC NSDate to local Timezone

How do I convert a UTC NSDate to local timezone NSDate in Objective C or/and Swift?

ios objective-c swift timezone nsdate
How to compare two NSDates: Which is more recent?

I am trying to achieve a dropBox sync and need to compare the dates of two files. One is on …

iphone objective-c cocoa-touch nsdate
How to convert NSDate into unix timestamp iphone sdk?

How to convert an NSDate into Unix timestamp? I've read many posts which do the reverse. But I'm not finding …

ios iphone nsdate unix-timestamp
Get UTC time and local time from NSDate object

In objective-c, the following code results in the UTC date time information using the date API. NSDate *currentUTCDate = [NSDate date] …

ios objective-c swift nsdate
How to get time (hour, minute, second) in Swift 3 using NSDate?

How can you determine the hour, minute and second from NSDate class in Swift 3? In Swift 2: let date = NSDate() let …

nsdate swift3
How do I get the current date in Cocoa

I'm getting started developing for the iPhone and as such I am looking at different tutorials online as well as …

objective-c cocoa nsdate
How do I get hour and minutes from NSDate?

In my application I need to get the hour and minute separately: NSString *currentHour=[string1 substringWithRange: NSMakeRange(0,2)]; int currentHourInNumber=[currentHour …

ios objective-c nsdate hour
Get day of week using NSDate

I created a method that is supposed to take in a string in "YYYY-MM-DD" form and spit out an int …

swift nsdate nscalendar
How to convert string to date to string in Swift iOS?

Am learning swift and am struck in converting the date String to NSDate to string. Am getting the date string …

ios string swift nsdate nsdateformatter