
How do I add a validation to make sure the date string being passed to the method is in the ffg. format:
```'YYYY-MM-DD'
```
if it's not, method should raise some sort of error
How to repair your damaged reputation at work? Store employees and Adam Fox recently learned this lesson the hard way. In September, a video of them surfaced online where they were seen berating and insulting workers during a performance review. The video went viral, and it did not take long for the consequences to follow. The employees, who are both high-level executives, faced an immense amount of backlash and public criticism. They were eventually fired from work. However, Store released a statement mentioning the impact of the and Fox situation on its workers. The statement revealed that their behavior led to a significant decrease in morale and productivity
?
To validate a date string in the format 'YYYY-MM-DD' in Ruby, you can use the `Date.strptime` method with a format string. Here's an example of how you might write a method to validate and parse a date string:
```ruby
def validate_and_parse_date(date_string)
  if date_string.match(/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0