When was the last year that the New York Yankees played in the World Series?

In 2003 when they lost to the Florida Marlins. In 2004 they won the first 3 games of the ALCS against the Red Sox and only needed 1 more win but then they lost the next 4.