Pass date string to Notes date field


Java


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 );

Written by Frank Joseph Brefere III

Posted by fbrefere001 on Sunday August 17, 2008