Time depends on how much you spend in each location -- can this be done in two weeks? Sure.

If you start in LA, drive up the coast to San Francisco, then Yosemite, Death Valley, Las Vegas, Hoover Dam, Grand Canyon and back to Los Angeles. You could make almost the same trip from SFO or Las Vegas -- just start on the circle at the city into which you get the best airfare.

As far as the sun, it's not that big a deal. Bring good sunglasses! Ideally, you want to travel west in the AM and east in the PM -- but over two weeks and 2000 miles, it is not possible to have it ideal all the time. Sun position is never a consideration for me when planning for driving, just for photography. You'll get your best shots when the sun is low, either end of the day. Just my opinion.