I have to extract the timestamp value from a response and have to pass it as a parameter to next request.
I have extracted the timestamp value from Regular Expression Extractor
.
Time stamp value is 1481086800000
Value to be passed is in the format(Month/Date/Year HH:mm
)- 12/07/2016 10:30
Kindly provide your valuable suggestion on how to convert the extracted time stamp value into above date format.
Following code directly converted
epoch timestamp
toAKST timezone
. No need of two samplers as suggested in the comments.Add JSR223 Sampler, select
Groovy
and add the following code:Screenshot reference: