Skip to Content
0
Apr 24, 2014 at 02:25 PM

getTimeReceived() is returning some constant date from SAP PI server

24 Views

Hi Team,

I am working on custom adapter module in that i am trying to access the time stamp of the received message for that i am using getTimeReceived() function from the com.sap.engine.interfaces.messaging.api but i am getting some default date value from the server as 07:00 PM 12-31-1969 and the following code i have used for using the function

long RTime = msg.getTimeReceived();

Date date2=new Date(RTime);

String RecivedTime = df.format(date2);

Please give me some alternative way to get the received message time stamp thank you very much in advance.

Regards,

Avinash.