I am new to java.I am suppose to use pattern matcher inside getter method such that e.g: getCreatedTime() which actualy has miliseconds is removed via passing it to through pattern matcher inside getter.
RequestTO.getDetailsTO().setReqTimeStamp(automaticalyRecoveryTO.getCreatedTime());
Currently time format is in YYYY-MM-dd HH:mm:ss.SSS
i.e. 26-SEP-18 04.29.48.452000000 PM expected:- 26-SEP-18 04.29.48 PM without miliseconds or without writing a new function.Please help me with this.