I want to have the current date prepopulate in the navigation bar each time the user opens the app, without having to select it using the date picker. Similar to how food tracker apps such as Lose It and MyFitness Pal work. But I can't find any documentation on how to do this. Here's what I tried but it says I can't assign NSDate to type String.
let currentDate = NSDate()
let dateFormatter = NSDateFormatter()
dateFormatter.dateStyle = NSDateFormatterStyle.FullStyle
var convertedDate = dateFormatter.stringFromDate(currentDate)
dateFormatter.dateFormat = "EEEE, MMMM dd, yyyy"
convertedDate = dateFormatter.stringFromDate(currentDate)
self.title = NSDate()