Definition Day:
One Earth Day is 24 hours or 86,400 seconds.
That is a legal and standardized definition.
It turns out there are several others which are needed to be sure of the answer of this question.
Astronomical Day:
If someone asks how long one day is, then the answer depends on whether one defines the day according to how long it takes the Sun to return to its position in the sky or whether it refers to how long the stars take to return to their apparent position in the sky. Normally, the question refers to the Solar day.
1. Solar Day: A mean solar day is about 86,400.002 SI seconds.
Originally, a day and the definition of hours and seconds was defined according to the solar day. The solar day is the time it takes the sun to go from its noon position in the sky to the same position again. That actually changes by a few seconds during the course of a year. Over a year, year to year, it averages to nearly the exact same time and at the moment it averages 2 thousandths of a second longer than it did when they made the original definition.
2. Rotation Period (also called the stellar day or the similar idea, the sidereal day):
The rotation period is the time it takes for the planet to complete one rotation relative to the fixed stars (not relative to the Sun). For Earth the rotation period is 0.99726968 days or 23 hours 56 minutes and 4.100 seconds. For Earth (the stellar day and the sidereal day are nearly of the same) this is about 3 minutes 56 seconds shorter than the solar day. As a consequence, the Earth rotates about 366 times a year.
Not at all. The planet's daily rotation is independent of its distance from the Sun.
All planets turn on their axis. This is called the planet's rotation; one complete rotation is equal to one day on that planet.
Mars. A "day" on Mars - which astronomers working with the Lunar Rovers call a "sol" - is about 24 hours 39 minutes 35 seconds. That's a "solar day". The "sidereal day" is a couple of minutes shorter.
The outer planets all rotate faster than the inner planets. Each of them has a rotational period shorter than an Earth day. All of the inner planets have rotational periods longer than one Earth day. The outer planets are mostly made up of hydrogen, helim, and ice, and they are much larger than the inner planets which are mostly iron and various types of rock.
Because of the difference of speed the planet is spinning, for example Neptune spins in speed greater than 2000 kph so its day and night is fast.That simply means that some planets rotate faster than others.
Mercury.
by the rotation of the planet
Because different planets have different diameters and spin at different rates.
I think that the sun doesn't have any length of day, because of the heat and how the planets revolve around the sun.
Earth has a 24 hour day and Mars has a 25 hour day.
23 Hours 57 Minutes and 14 Seconds
Rotational time of the planets is random (the length of the planet's day), but the outer planets do spin faster than the inner planets.
One full rotation of any planet on its axis is the length of that planets day, Earth included.
No two planets in our solar system have the same length of day or length of year. Compared with Earth, these planets have longer years: Mars, Jupiter, Saturn, Uranus, Neptune. These have much longer days than Earth: Mercury and Venus. Mars has a day that's slightly longer than Earth's day. Depending on the particular definition of "day" that is used, two planets have a day that's longer than than that planet's year. They are Mercury (solar day) and Venus (sidereal day).
Earth and Mars. Earth's day is 24 hours, while Mars' day is 24 hours 37 minutes.
There is no direct relationship between the rotation of a planet (which governs day length) and a planets distance from the sun. The nature of the planets spin is more to do with the formation of the system early on, by large impacts of the more numerous bodies that would have been around.
Some planets rotate faster or than others. Also the planets take different times to orbit the Sun.