How can I format a string like "Fri Oct 17 00:00:00 +0200 2003" to a simple date string such as Fri Oct 17 2003?
Is there a simple solution?
Yes, use NSDateFormatter to parse the first into NSDate, and then use another NSDateFormatter to write the NSDate to the second format.
NSDateFormatter
NSDate
Here you can find a list of date format specifiers: Unicode date formats
Source: https://habr.com/ru/post/1300907/More articles:How to highlight GridLength animation from "Auto" to "*"? - animationJPEG-LS / LOCO-I Compression Library - imageIE Prevent focus (click, double click) in the selection box if it has a specific class - javascript2 columns in css without a float, absolute position - cssTreeView text is truncated if the font is changed from bold to regular - .netRuby character table overflow problem - hashtableIs separation of content, presentation and behavior possible every time? - javascriptShould I useor? - htmlNeed to do the opposite of NSSelectorFromString () - objective-cUsing MVC model with Swing Application Framework - javaAll Articles