Date formatter for the google calender API

<>

This question already has an answer here:

Answers


To get the NSDate from that string:

 NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
 [dateFormat setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSS Z"];
 NSDate *myDate = [dateFormat dateFromString:@"2013-05-03T22:30:00.000+02:00"];

Once you have your NSDate, you can do the same to get the representation:

NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:"MMM d yyyy"];
NSString *myString = [myDate stringFromDate:myDate];

You can consult the whole date formatting options here:

Date Formatter Guide


Need Your Help

How do you maintain separate webservices for dev/stage/production

c# .net asp.net web-services

We want to maintain 3 webservices for the different steps of deployment, but how do we define in our application which service to use? Do we just maintain 3 web references and ifdef the uses of them

CacheFactory working in my browser but not working in my apk

android angularjs ionic angular-cache

I have added angular-cache to my app, and have created my items as shown below :

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.