The following is a fact-check from the June 27, 2010 episode of Meet the Press:  

SEN. JOHN McCAIN (R-AZ) | No military adviser recommended to President Obama that he set a date of mid-2011 for begin the withdrawal of coalition forces from Afghanistan – LIKELY FALSE

SEN. McCAIN: Look, I, I’m against a timetable. In wars, you declare when you’re leaving after you’ve succeeded. And, by the way, no military adviser recommended to the president that he set a date of the middle of 2011. So it was purely a political decision, not one based on facts on the ground, not based on military strategy or anything. Now…

MR. GREGORY: All–Senator, is that fair? All of his military advisers, the chairman of the Joint Chiefs, General Petraeus, General McChrystal, they all signed onto the idea…

SEN. McCAIN: They signed onto it…

MR. GREGORY: …of July. 2011. Well, isn’t it their obligation to say…

SEN. McCAIN: It’s not their idea.

MR. GREGORY: …that this is wrong?

SEN. McCAIN: In my view it is.

MR. GREGORY: Well, they didn’t do that, though.

SEN. McCAIN: In my view it is. They didn’t.

MR. GREGORY: So they were for it.

SEN. McCAIN: They didn’t do it. They didn’t do it, and they should have because they know better.

According to the New York Times, both Admiral Mullen, chairman of the Joint Chiefs of Staff, and Defense Secretary Robert Gates signed onto the date of mid-year 2011 to withdraw forces from Afghanistan, though, they both said withdrawal will hinge on “conditions on the ground.” But Gates and Mullen reiterated that mid-year 2011 will mark the date to start the transition of control to Afghan government. Gen. Stanley McChrystal, former commander of the war in Afghanistan, was “absolutely supportive” of the withdrawal date.

To judge whether the withdrawal date was purely political, we looked over Obama’s statements, including focusing on campaign promises to see if he ever mentioned the withdrawal date on the campaign trail. Obama did pledge to send additional brigades to Afghanistan on the campaign trail, but never mentioned a date of withdrawal from Afghanistan. The first mention of the specific withdrawal date was on December 1, 2009, in President Obama’s speech at West Point.

As Mr. Gregory rightfully pointed out, it is unlikely that Sen. McCain’s point could be true when President Obama’s military advisers indicated they supported the timetable. Although, it’s worth acknowledging that it is unlikely that a presidential military adviser would publicly contradict the President, that assumption cannot provide a factual basis for McCain’s statement. In addition, we could find no evidence that the Obama administration determined the withdrawal timetable for political reasons, though, we admit it is obviously impossible to confirm at this time what happened behind closed doors regarding the matter.  We rate Sen. McCain’s statement LIKELY FALSE.

The following fact-check took a combined 2.75 hours..