soapUI: Dynamic timestamp

Add a property, e.g. currentTimestamp, then add the following:

${=new java.text.SimpleDateFormat(“yyyy-MM-dd’T’HH:mm:ss”).format(new Date())}

It will create the date in this format:

2013-03-12T11:03:05

Happy SOAP’ing!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.