title: How to remove Optional(" ") and format date in Swift
body: <p>I have the following code:</p>
  
  <p><code>let dateToday = NSDate()</code></p>
  
  <p>I “pass” it to the Score View Controller via a function:</p>
  
  <pre><code>func saveScore(){
  
      let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
      let gameResult = NSEntityDescription.insertNewObjectForEntityForName("SaveGame", inManagedObjectContext: appDelegate.managedObjectContext) as! SaveGame
  
      gameResult.datePlayed = dateToday
      // other data goes here
  
  self.performSegueWithIdentifier(“scoreSegue", sender: self)
  }
  </code></pre>
  
  <p>In the Score View Controller, I display it as:</p>
  
  <p><code>cell.textLabel?.text = "Date: \(game.datePlayed)</code></p>
  
  <p>However, I only get this line with the Optional(" ") line.</p>
  
  <p><a href="http://i.stack.imgur.com/zzCbT.png" rel="nofollow">pls check my screenshot</a></p>
  
  <p>How do I remove the <code>Optional (" ")</code> and how do I format the date to:
  <code>MM/dd/yyyy hh:mm (AM/PM)</code>?</p>