I am trying to set on context object through setter method. But i am getting an error for the line of code below :
IllegalArgumentException: cannot format given Object as a Date
contextBO.setSettlDate(
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")
.format( nppRequest.getIntrBankSettlementDt().toString())
);
value coming from nppRequest.getIntrBankSettlementDt()
is "2016-04-14"
, Can you guys please help me out here.