I am developing a program for iPhone. I have to get the current timestamp in NSString. Please let's know how to do this. Any code example for converting NSTimeInterval into NSString will help me a lot.
You can use the following code:
NSTimeInterval todaysDate = [[NSDate date] timeIntervalSince1970]; NSString *timeinNSString = [NSString stringWithFormat:@"%f", todaysDate];