cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Format the Soap Timestamp Date Format

Subha_SwethaNan
Level 2
Dear All,

I am trying to hit the soap Api using the input request xml.

The Request of API includes the security Timestamp and the format is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'

I used below logics to create the above format but the output is returned as text and the soap request doesnt accept that it threws a date parse exception.
FormatUTCDateTime(Now(); yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
FormatUTCDateTime(Now(); "yyyy-MM-dd")&"T"&FormatUTCDateTime(Now(); "HH:mm:ss")&"Z"

And Also used the code stage to format the Date and that didn't work as well.

Dim MS
MS = format(Now,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
Console.WriteLine(MS)

Can you please suggest to me a way to send the timestamp format correctly to the soap request?


<wsu:Created>2021-04-30T06:07:57Z</wsu:Created>

------------------------------
Subha Swetha Nandyala
software engineer
HCL technologies
Asia/Kolkata
------------------------------
0 REPLIES 0