code: def parse_tstamp(ev, field_name):
      
      try:
          return datetime.strptime(ev[field_name], '%Y-%m-%d %H:%M')
      except Exception as e:
          log.error("Unable to parse the '%s' field in the event named '%s': %s" \
              % (field_name, ev['title'], e))
          raise
docs: Parse a timestamp string in format "YYYY-MM-DD HH:MM"
  
      :returns: datetime