cancel
Showing results for 
Search instead for 
Did you mean: 

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

avinash_ayanala
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

avinash_ayanala
Participant
0 Kudos

hi Team,

Hello is any one there please give me some response.

Regards,

Avinash