added parameter to control days for menuparser.getdata