I am trying to display a value of type NSDate with a label.
label.text = date
I get an error saying, "Cannot assign value of type 'NSDate?' to type 'String?'".
I have tried using the "as" operator, but it won't work.
label.text = date as String
I get an error saying, "Cannot convert value of type 'NSDate?' to type 'String?' in coercion"
What is the solution to this problem?