def _get_date_value(date):
 try:
  return '{0}'.format(date)
 except ValueError:
  return 'Never'

def _get_date_value ( date ) : try : return '{0}' . format ( date ) except ValueError : return 'Never'
function for dealing with pytime values with invalid dates .