It depends on how you travel:
* Spacecraft: The fastest spacecraft ever built, the Parker Solar Probe, took about 3 months to reach the Sun's outer atmosphere.
* Light: Light travels at 299,792,458 meters per second, so it takes about 8 minutes and 20 seconds for light from the sun to reach Earth.
* Conventional spacecraft: Typical spacecraft would take much longer, potentially years, to reach the Sun.
Important note: Even the fastest spacecraft wouldn't be able to land on the sun, as it would simply burn up.