refactor date format to MongoDateFormat