Wie erhalten Sie Jahr der Felddatenbank in Laravel Collection

$post = Post::find(2);

$year = $post->created_at->year;
$month = $post->created_at->month;
Mohamad