import java.text.* def now = new Date() println new SimpleDateFormat("yyyyMMddhhmmss.SSS").format(now)