csvWriter = new LogisticsInventoryFormatter(csvLogger, startCDay, parentPlugin);
csvWriter = new LogisticsInventoryFormatter(csvLogger, new Date(startCDay), parentPlugin);
    public void reinitialize(boolean logToCSV, Date startCDay, InventoryPlugin parentPlugin) {        logger = parentPlugin.getLoggingService(this);        if (logToCSV) {            csvLogger = LogisticsInventoryLogger.createInventoryLogger(myPG.getResource(), myPG.getOrg(), true, parentPlugin);            csvWriter = new LogisticsInventoryFormatter(csvLogger, startCDay, parentPlugin);        }        taskUtils = parentPlugin.getTaskUtils();    }