Change createdAt to dateCreated