changes to coredata

fixed clone, added formatDateObject()