created and updated should be of type Date