1
2
3
4
import java.text.*

def now = new Date()
println new SimpleDateFormat("yyyyMMddhhmmss.SSS").format(now)