Build your Alaska dates around what you want to see. Summer suits a national park trip, especially if you want to spend much of the day outside. From Anchorage, the trails of Chugach State Park make it possible to fit mountains, valleys, and glacier views into a day without making the city just a stopover.
For the aurora, plan around dark nights instead. The broad viewing window stretches from mid-August into early April, with February, March, September, and October worth particular consideration. Give yourself more than one night so a cloudy sky does not decide the trip.