I want to get the date and time in the format, for example, "Friday May 31, 2013 12:00." How can I achieve this using NSDateFormatter?
NSDate *myDate = datePicker.date; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"cccc, MMM d, hh:mm aa"]; NSString *prettyVersion = [dateFormat stringFromDate:myDate];
Source: https://habr.com/ru/post/945047/More articles:android: ellipsis in ICS text continues after ellipsis - androidconvert oracle blob to xml type - xmlHow are signal signatures implemented in `boost :: signals2`? - c ++How to print a variable containing a Unicode character? - pythonGet a list of all currently loaded classes in a given JVM instance - javaPhonegap jQuery event.target Not Working - jqueryScrap site using scrapy - pythonThe type initializer for "Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment" threw an exception - c #How to sign maven publications with gradle - gnupgHow to create nanohttpd server in android? - androidAll Articles