The length of time it takes to get to the Sun depends upon the speed of the object going to the Sun. The Sun is 92.956 million miles away.
Apollo 10, the fastest manned spacecraft, traveled 24,790 mph. At that speed, it would take about 156 days to reach the Sun. The unmanned NASA New Horizon probe traveled away from the Earth on its path to Mars and beyond at 36,373 mph. If it travel to the Sun, it would have taken just over 106 days to reach it.
It takes light approximately 8 minutes and 20 seconds to travel from the Earth to the Sun.