Ensure date_obj() always creates a date_obj class object, even when the date is invalid.