text: import datetime
  
  THIS_YEAR = 2018
  
  def years_ago(date):
      """Receives a date string of 'DD MMM, YYYY', for example: 8 Aug, 2015
         Convert this date str to a datetime object (use strptime).
         Then extract the year from the obtained datetime object and subtract
         it from the THIS_YEAR constant above, returning the int difference.
         So in this example you would get: 2018 - 2015 = 3"""
      convert_to_date = datetime.datetime.strptime(date, '%Y-%m-%d')
      year = convert_to_date.year
      return THIS_YEAR - year
  
  years_ago('2015-02-24')
  
  
  def convert_eu_to_us_date(date):
      """Receives a date string in European format of dd/mm/yyyy, e.g. 11/03/2002
         Convert it to an American date: mm/dd/yyyy (in this case 03/11/2002).
         To enforce the use of datetime's strptime / strftime (over slicing)
         the tests check if a ValueError is raised for invalid day/month/year
         ranges (no need to code this, datetime does this out of the box)"""
      eu_date = datetime.datetime.strptime(date, '%d/%m/%Y')
      us_date = eu_date.strftime('%m/%d/%Y')
      return us_date
  
  convert_eu_to_us_date('24/02/2015')