code: def _get_time_stamp(entry):
      
      if not entry or entry == 'Undef':
          return None
      try:
          dt = datetime.datetime.strptime(entry, '%Y-%m-%dT%H:%M')
      except Exception as e:
          logger.debug('Could not parse %s format' % entry)
          return None
      return dt
docs: Return datetime object from a timex constraint start/end entry.
  
      Example string format to convert: 2018-01-01T00:00