Created
September 14, 2013 03:17
-
-
Save dkolb/6558550 to your computer and use it in GitHub Desktop.
Making xsd:dateTime values for SoapUI tasks (e.g. getting today and 30 days ago).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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