Date formatter for the google calender API


This question already has an answer here:


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 to download a webpage for offline viewing on Nexus 7

android tablet nexus-7

I have a webpage that I would like to view when I am not in a WIFI area on my Nexus 7 tablet.

When does a Gridview have a null DataSource?

c# entity-framework

I've read multiple sources that say Gridview's do not persist the Gridview.DataSource property on postback. My understanding is that in term's of ASP.NET, a postback is any page load that is not the

Error with ASPNET RoleProvider web-config machine-config

I just installed an application on a win2003 server and I'm getting this error:

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.