I\'m having trouble finding a good way of formatting a UTC-time stamp with this format: yyyyMMdd-HH:mm:ss.
yyyyMMdd-HH:mm:ss.
I wasn\'t able
Use yyyyMMdd-HH:mm:ss.SSS
yyyyMMdd-HH:mm:ss.SSS
This will get you milliseconds as well.
Test Code:
def now = new Date() println now.format("yyyyMMdd-HH:mm:ss.SSS", TimeZone.getTimeZone('UTC'))