Pick a place and a date to see sunrise, sunset, daylight length and civil twilight, so you know when to start and when to be off the trail.
Times are calculated on your device with the standard NOAA solar equations and rounded to the minute, for sea-level horizons. In deep valleys the sun disappears behind the ridge earlier, so treat it as the latest possible time. Civil dawn and dusk are when the sun is 6 degrees below the horizon. How much light you actually have depends on cloud, forest and terrain, so carry a headlamp and plan to be off the trail before dark.
Combine this with the hiking time calculator to find your latest start.