2264, according to the official Star Trek web site
According to James T. Kirk's file on StarTrek.com (the official site of the franchise), he was promoted to captain and took command of the Enterprise in 2264. His first five-year mission ended in 2269. (Source)
As Discovery is set in 2256, it would be another 8 years before Kirk takes command of the Enterprise.