Menu Open

Convert NSTimeInterval to NSString - iOS Development

17 September 2012, 4:38 PM
To convert NSTimeInterval to NSString the following code works perfect

NSTimeInterval today = [[NSDate date] timeIntervalSince1970];
NSString *intervalString = [NSString stringWithFormat:@"%f", today];