//
//  NSDate+Extensions.m
//  DrivoMeter
//
//  Created by Mobi on 2/5/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "NSDate+Extensions.h"

@implementation NSDate (Extensions)

+ (NSString *)weekdayFromDate:(NSDate *)date {
  NSDateFormatter *weekday = [[NSDateFormatter alloc] init];
  [weekday setDateFormat: @"EEE"];
  return [weekday stringFromDate:date];
}

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