ERP Creation : fixing NaN date message in confirm box