This is currently not possible, because Core Data is still very attached to Objective-C types, and this is one of the places it shows.
However, you can still assign Date to the NSDate attribute:
newEvent.timestamp = Date() as NSDate
This is far from ideal, but if you have other code that uses Date , you do not need to use its NSDate . Use as to convert only when working with your managed objects.
Tom harrington
source share