//
//  NSDate+DateFormat.m
//  Gengmei
//
//  Created by Sean Lee on 4/14/15.
//  Copyright (c) 2015 Wanmeichuangyi. All rights reserved.
//

#import "NSDate+DateFormat.h"

@implementation NSDate (DateFormat)

-(NSString *)dateFormatToString {
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd"];
    return [formatter stringFromDate:self];
}


@end
