updated the model to work with complete dates