cancel
Showing results for 
Search instead for 
Did you mean: 

Converting string into date and applying transformation failing

vaidyarm
Contributor

I am passing a timestamp as a variable through pipeline parameter as ‘p_querystring_modifieddateafter’.

while applying logic as below in mapper and in REST GET snap parameters, I am getting the failure :

Logic in Mapper :
_p_querystring_modifieddateafter.minusDays(1).toLocaleDateString()+“T00:00:00.000”

tried with below logic also, still failing,

LocalDateTime.parse(_p_querystring_modifieddateafter).minusDays(1).toLocaleDateString()+“T00:00:00.000”

let me know if i am making any mistake…

2 1

6 REPLIES 6

@vaidyarm

The quotes you have copied and pasted into the mapper are invalid quote characters.

Please delete the quotes and retype them in the mapper and the expression will work as expected.

vaidyarm
Contributor

Got the issue…
it was “ causing the issue, where it should be "

thanks for your great help and follow up @cjhoward18 .