Forum Discussion
- groovyguyCommunity Hero
What I typically use for needing the exact NOW timestamp in a request (this works for SOAP requests, not sure about REST) is to utilize inline property scripts, as seen below. This will process the exact timestamp of when the request is processed/sent every time.
${= Calendar.getInstance(TimeZone.getTimeZone('GMT')).format("yyyy-MM-dd'T'HH:mm:ss") }
- SandyapitesterFrequent ContributorHi All, I have used the below script ${=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSSSSS XXX").format(new Date())} Which am getting the date format value with ?? like "2017-05-22 22:03:38.0000270 +05:30??" istead of "2017-05-22 22:03:38.0000270 +05:30" Why am getting this question mark?
Related Content
- 8 years ago
Recent Discussions
- 5 days ago
- 9 days ago