String nextpymt = recurResponse.getNextPayment();
String npmonth = nextpymt.substring(0,2);
String npday = nextpymt.substring(2,4);
String npyear = nextpymt.substring(4,8);
DateTime dt = session.createDateTime("Today");
dt.setLocalTime(npmonth+"/"+npday+"/"+npyear);
doc.replaceItemValue("NEXTPAYMENT", dt );