Changed createdDate back to Date type