cancel
Showing results for 
Search instead for 
Did you mean: 

Date and time stamp

former_member197830
Participant
0 Kudos

Hi Experts,

Is there any standard function to get current data and time like below in sap PI.

Data and timestamp example:   2016-01-09T04:49:43


I have checked Date functions in but i didn't get.

Thanks  & Regards,

Narasaiah T.

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Narsaiah,

I think with dateTrans function you can try setting the T between '', like 'T'.

Check Eng's blog

Regards.

former_member186851
Active Contributor
0 Kudos

Nice one Inaki.Never tried this before. Thanks for the share.

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello ,

Try the below logic with UDF

UDF:

String Out = var1.replaceAll(",","T");

return Out;

former_member197830
Participant
0 Kudos

Dear Raghuraman,

Thanks for your help.

former_member197830
Participant
0 Kudos

Dear Raghuraman,

Is there any standard function to replace ',' with 'T' insted of UDF.

Can you please help me.

Thanks & Regards,

Narasaiah T.