Forum Discussion
2 Replies
Sort By
Hi Cecilia,
The following script should work if you put it in the Groovy Test Step:
import java.text.SimpleDateFormat def date = new Date() sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss") log.info(date)
- nmrao
Champion Level 1
You need to post the question with details and do not let users image your issue.
Where do you need to use it? In a soap request? rest ? groovy script?
What date format do you need?