Make the `format` function a helper function and declare it outside the Task object so that you don't have to keep redefining it everywhere you use it. Also if you want to change how the date formatting looks later, only have to do it in one place.