on 2022 Mar 05 3:48 PM
How do I change the date format of the incoming XML code (Employee data of 6 employees) from dd-MM-YYYY to YYYY-mm-dd in the iflow.
Example: <?xml version='1.0' encoding='UTF-8'?>
<EmployeeData>
<Employee>
<ID>1</ID>
<Name>Raam</Name>
<DOJ>19-07-2016</DOJ>
<Country>IND</Country>
</Employee>
<Employee>
<ID>2</ID>
<Name>Siva</Name>
<DOJ>18-07-2016</DOJ>
<Country>IND</Country>
</Employee>
<Employee>
<ID>3</ID>
<Name>John</Name>
<DOJ>01-11-2011</DOJ>
<Country>US</Country>
</Employee>
<Employee>
<ID>4</ID>
<Name>Shane</Name>
<DOJ>19-05-2013</DOJ>
<Country>US</Country>
</Employee>
</EmployeeData>
Request clarification before answering.
Hi Ramya,
What is the error/issue you are facing?
Did you try with the Date function from Graphical mapping or did you use groovy script for date format conversion or xslt code or used it in content modifier?
Regards,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavan,
I tried with groovy script was not working for the entire code and found that I could do this Graphical mapping itself and voila it worked.
Thanks for responding!
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.