I'm trying to format time as follows:
let formatter = NSDateFormatter()
formatter.dateFormat = "hh_mm_ss"
let d = formatter.stringFromDate(NSDate())
println("formatted text is: \(d)")
Suppose that current time is Sep 3, 2014 22:15:30
- When I run this script on playground, it prints the time correctly formatted: 
22_15_30. - When running this on AppDelegate, it doesn't print the time formatted: 
22:15:30 
I'm using xcode 6 beta 5... Am I missing something? Why stringFromDate doesn't return the correct date formatted?
EDIT: I'm using xcode 6 beta 6.
Thanks!