From Dehradun manali is 12 hours away. From Manali Spiti is 5 hours away. There are night buses from Dehradun to Manali and from Dehradun to Spiti buses run all through the day. So you can book advance tickets or buy tickets then and there from Manali to Spiti.