def today(boo):
  """
  Return today's date as either a String or a Number, as specified by the User.

  Args:
    boo: if true, function returns Number (20151230); if false, returns String ("2015-12-30")
  Returns:
    either a Number or a string, dependent upon the user's input
  """
  tod = datetime.strptime(datetime.today().date().isoformat().replace('-', ' '), '%Y %m %d')
  if boo:
    return int(str(tod).replace('-', '')[:8])
  else:
    return str(tod)[:10]
def today ( boo ) : tod = datetime . strptime ( datetime . today ( ) . date ( ) . isoformat ( ) . replace ( '-' , ' ' ) , '%Y %m %d' ) if boo : return int ( str ( tod ) . replace ( '-' , '' ) [ : 8 ] ) else : return str ( tod ) [ : 10 ]
Return today's date as either a String or a Number, as specified by the User.

  Args:
    boo: if true, function returns Number (20151230); if false, returns String ("2015-12-30")
  Returns:
    either a Number or a string, dependent upon the user's input