Skip to content

Instantly share code, notes, and snippets.

@aopsfan
aopsfan / NSDate is now nicer :)
Created April 21, 2011 01:05
Use this to lets an NSDate remove his time
@interface NSDate (DateWithoutTime)
- (void)deleteTime;
@end
@implementation NSDate (DateWithoutTime)
- (void)deleteTime {
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];