Skip to Main Content

change String value from format (2022-08-15T00:00:00+00:00) to (08/15/2022) in Bpel

Sanjeev-OFMAug 23 2022

Hello Friends,
We are having one String variable with value "2022-08-15T00:00:00+00:00" and we want to change this value to the same variable as 08/15/2022.
I'm using the assign activity and with below substring function but not getting the proper value.
value coming in attribute13: 2022-08-15T00:00:00+00:00
Using expression to change value in Assign activity:
concat(substring(bpws:getVariableData('inputVariable','payload','/client:process/client:invoiceImport/client:header/client:attribute13'),5,7),'/',substring(bpws:getVariableData('inputVariable','payload','/client:process/client:invoiceImport/client:header/client:attribute13'),8,10),'/',substring(bpws:getVariableData('inputVariable','payload','/client:process/client:invoiceImport/client:header/client:attribute13'),0,4))
Required Value for Attribute13: 08/15/2022
Kindly suggest how i can get the required output value.
Thanks
Sanjeev

Comments
Post Details
Added on Aug 23 2022
0 comments
2 views