Top "Nsdate" questions

NSDate objects represent a single point in time.

Convert NSDate to NSString

How do I convert, NSDate to NSString so that only the year in @"yyyy" format is output to the string?

objective-c swift nsstring nsdate
Formatting NSDate into particular styles for both year, month, day, and hour, minute, seconds

I basically need to get current date and time separately, formatted as: 2009-04-26 11:06:54 The code below, from another question …

cocoa cocoa-touch nsdate nsdateformatter date-formatting
Date Format in Swift

How will I convert this datetime from the date? From this: 2016-02-29 12:24:26 to: Feb 29, 2016 So far, this is my …

ios swift nsdate nsdateformatter
NSDate get year/month/day

How can I get the year/month/day of a NSDate object, given no other information? I realize that I …

objective-c nsdate nsdatecomponents nscalendar
How do you create a Swift Date object?

How do you create a date object from a date in swift xcode. eg in javascript you would do: var …

ios iphone swift nsdate
How do I add 1 day to an NSDate?

Basically, as the title says. I'm wondering how I could add 1 day to an NSDate. So if it were: 21st …

objective-c swift date cocoa-touch nsdate
Convert string to date in Swift

How can I convert this string "2016-04-14T10:44:00+0000" into an NSDate and keep only the year, month, day, hour? …

swift nsdate nsdateformatter
Get current date in Swift 3?

How can I set label.text current date in Swift 3? I want to print just today to the screen. I …

swift nsdate
How can I convert string date to NSDate?

I want to convert "2014-07-15 06:55:14.198000+00:00" this string date to NSDate in Swift.

ios string swift nsdate
Converting NSString to NSDate (and back again)

How would I convert an NSString like "01/02/10" (meaning 1st February 2010) into an NSDate? And how could I turn the NSDate …

ios objective-c nsstring nsdate