How do I convert, NSDate
to NSString
so that only the year in @"yyyy" format is output to the string?
Swift – Convert NSDate to NSString
nsdatensstringobjective cswift
Related Topic
- Objective-c – How to convert an NSString into an NSNumber
- Ios – Convert UTF-8 encoded NSData to NSString
- Ios – How to check if a string contains another string in Objective-C
- Ios – Converting NSString to NSDate (and back again)
- Ios – Passing data between view controllers
- Objective-c – “sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers” warning
- Ios – Convert an NSURL to an NSString
- Ios – How to convert string date to NSDate
Best Answer
How about...
Swift 4.2 :