Xcode here
I am able to safe my NSDate to SQLite but when I to call it up, it is nil.
My two other variables are being able to be displayed with no problem. But for some reason, I can not display my NSDate.
Can someone please tell me what I am doing wrong??
Enter Name and First Name , then save it
It will bring you back to the Table View and then simply click on your name and it will bring you to the Update Place if you want to change anything.
All I care about is why I can not display my date.
Got to work
if let dateOfAdmittance = record.valueForKey(“createdAt”) as? NSDate {
dateOfAdmittanceTextField.text = NSDateFormatter.localizedStringFromDate(dateOfAdmittance, dateStyle: NSDateFormatterStyle.FullStyle, timeStyle: NSDateFormatterStyle.MediumStyle)
print(dateOfAdmittanceTextField.text)
}