views:

15

answers:

0

Hi,

this code works on simulator ... but not on my ipod touch... on ipod I see the unformated date :-(

 NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] retain];

//Date Before = Sun, 20 Jun 2010 06:00:00 +020

        [formatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss Z"];
        NSDate *d = [formatter dateFromString:string];
        [formatter setDateFormat:@"dd.MM.yyyy HH:mm"];
        string = [NSString stringWithString:[formatter stringFromDate:d]];
        [currentDate appendString:string];