I have this code where I\'m trying to get the current date and format it in the current locale.
NSDate *now = [NSDate date]; // gets current date NSString *sNo
If you want the localized date and time this will give it to you:
NSString *localizedDateTime = [NSDateFormatter localizedStringFromDate:[NSDate date] dateStyle:NSDateFormatterShortStyle timeStyle:NSDateFormatterShortStyle];
The code above does not give you the localized date and time.