I've never been convinced that shorts are cooler than light weight slacks, especially if knee socks are required with the shorts.
BTW, for those who never know which to wear, several manufacturers now make slacks with a zipper to remove the lower part.