Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to change date format in web service request menu

Avatar

Level 2

It s proably too simple but I dont have any clue . My problem is I have a web service which is invoked by adobe invoke web service process.

and I have FormData which is xml and input .

FormData contains a few information  such as 

<FormData>

<Field01MusteriNo>123456</Field01MusteriNo>
    <StartDate>25/01/2010</StartDate>
    <EndDate>30/06/2012</EndDate>
</FormData>

However My Web Service requires the dates such as yyyy-mm-dd type

   <soapenv:Body>
      <core:SelectNotFinishedDifferenceDocumentList>
         <core:customerNumber>123456</core:customerNumber>
         <core:startDate>2010-01-25</core:startDate>
         <core:endDate>2010-06-30</core:endDate>
      </core:SelectNotFinishedDifferenceDocumentList>
   </soapenv:Body>

so it s simply  how to convert 25/01/2010 (dd/mm/yyyy) to 2010-01-25 (yyyy-mm-dd) in web service request menu

I already try to put T00:00:00 end of date it didnt work

0 Replies

Avatar

Level 10

Two thing to consider:

1. If you are calling the Web Service from within your From, you use Javascript's parse() and getDay(), getMonth() & getYear() methods to convert the date format

2. Or If you invoke WS from your workflow, use parse-date() and format-date() functions to format the date

Nith