Alleyn
4 years agoContributor
In SoapUI Pro Current date and time - no longer working
After a .net upgrade my code for calculating the current date and time no longer works. The below worked fine before with the below
${= new Date().format('yyyy-MM-dd HH:mm:ss.SSSSS Z')}
but now I get the error
The JSON value could not be converted to System.DateTime. Path: $.occurredOn | LineNumber: 26 | BytePositionInLine: 51.
Can anyone offer some solution please?
- Hey Alleyn,
So weird! It looks like it's parsing and escaping your double quotes and then moaning cos it doesnt like the escaping!
I like your work around!
Cheers,
Rich