code: def beautify_date(inasafe_time, feature, parent):
      
      _ = feature, parent  # NOQA
      datetime_object = parse(inasafe_time)
      date = datetime_object.strftime('%Y-%m-%d')
      return date
docs: Given an InaSAFE analysis time, it will convert it to a date with
      year-month-date format.
  
      For instance:
      *   beautify_date( @start_datetime ) -> will convert datetime provided by
          qgis_variable.