cancel
Showing results for 
Search instead for 
Did you mean: 

Convert date format yyyy-mm-dd to yyyymmdd

Former Member
0 Kudos

Hi All,

Could you please tell me how to do the mapping format to Convert date format yyyy-mm-dd to yyyymmdd

or

Please provide any UDF for this conversion.

Thank you .

Regards,

Bharat Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bharat,

This is one of the most basic requirement in SAP PI and you could have easily found this in one of the zillions of threads on this topic.

Refer the blog from Sarvesh, it talks about almost everything you want to do with DateTrans function:

/people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function

Answers (4)

Answers (4)

Former Member
0 Kudos

useful

former_member208856
Active Contributor
0 Kudos

The blog of Sarvesh Singh is perfect to solve your problem.

If you have problem of dynamic date formats, check the below blog :

/people/robin.schroeder/blog/2006/11/21/dynamic-date-conversion-in-message-mapping

Former Member
0 Kudos

HI ,

You can easily do that by using the standard datetransformation fuction . in the property of that function put your coming source and desired target format . However once you specify the source format then the source field should always be in thaat format

Regards,

Saurabh

Former Member
0 Kudos

Just use the Std. DateTrans funcion and set the in & out format as per you need. No nedd of udf..