I'd call this `createDateFormat` to make it clear it's generating one. Also you can drop the parens and return type:
```
def createDateFormat = new SimpleDateFormat("yyyyMMddHHmmss")
```