Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Making xsd:dateTime values for SoapUI tasks (e.g. getting today and 30 days ago).
import java.util.Calendar
import javax.xml.bind.DatatypeConverter
now = Calendar.getInstance()
endDate = DatatypeConverter.printDateTime(now)
now.add(Calendar.DAY_OF_MONTH, -30)
startDate = DatatypeConverter.printDateTime(now)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.