Top "Nsdate" questions

NSDate objects represent a single point in time.

How to get NSDate day, month and year in integer format?

I want to get the day, month and year components of NSDate in integer form i.e. if the date …

iphone datetime date nsdate nsdateformatter
Get current iPhone device timezone date and time from UTC-5 timezone date and time iPhone app?

In my iPhone application i am very struggling to convert the webservice response time to current device time. The webservice …

ios objective-c swift nsdate nsdateformatter
Calculating the number of days between two dates in Objective-C

Possible Duplicate: How can I compare two dates, return a number of days I have two dates (as NSString in …

objective-c ios nsstring nsdate
How do I get an ISO 8601 date on iOS?

It's easy enough to get the ISO 8601 date string (for example, 2004-02-12T15:19:21+00:00) in PHP via date('c'), but …

ios nsdate nsdateformatter iso8601
Objective-C setting NSDate to current UTC

Is there an easy way to init an NSDate with the current UTC date/time?

iphone objective-c ios nsdate utc
NSDate - Convert Date to GMT

I need the ability to convert an NSDate value to a GMT Date. How can I go about converting an …

ios objective-c swift nsdate gmt
UIDatePicker, setting maximum and minimum dates based on todays date

If I have a UIDatePicker, and I wish to set the minimum and maximum date range to be between thirty …

iphone objective-c nsdate uidatepicker
Check if date is before current date (Swift)

I would like to check if a NSDate is before (in the past) by comparing it to the current date. …

swift nsdate
Converting a date format in objective C

How can i convert the following date "Sun Jul 17 07:48:34 +0000 2011" to the following format "2011-07-17 07:48:34"? I used NSDateFormatter as shown …

iphone objective-c ios nsdate nsdateformatter
first and last day of the current month in swift

I'm trying to get the first and last day of the month in swift. So far I have the following: …

ios swift nsdate nscalendar