One day is all you will need to see all of the major sights in Joshua Tree National Park, including time for short walks. Only one hour is needed to drive through the entire park without stops from the Oasis Visitor Center to the south entrance near Cottonwood Springs.
The main road in Joshua Tree is Pinto Basin Road.