Move `formatDate` method to `posts` model