Synodic day

A synodic day is the period it takes for a planet to rotate once in relation to the star it is orbiting (its primary body).
The synodic day is distinguished from the sidereal day, which is one complete rotation in relation to distant stars. This is different from the duration of a synodic day because the revolution of the body around its parent star would cause a single "day" to pass relative to a star, even if the body did not rotate itself.
Earth's synodic day.
Earth's synodic day is the time it takes for the Sun to pass over the same meridian (a line of longitude) on consecutive days, whereas a sidereal day is the time it takes for a given star of reference to pass over a meridian on consecutive days. So, for example in the Northern Hemisphere, a synodic day could be measured as the time taken for the sun move from exactly true south (i.e. its highest declination) on one day to exactly south again on the next day (or exactly true north in the Southern Hemisphere).
For Earth, the synodic day is known as a solar day, and its mean length is 24 hours (with fluctuations on the order of milliseconds). This length is not constant, and changes over the course of the year due to the eccentricity of the Earth's orbit around the Sun and the axial tilt of the Earth. This change accounts for the difference between the "mean" and "apparent" solar time in the equation of time, which can also be seen in Earth's analemma. The longest and shortest synodic days' durations differ by about 51 seconds.
As viewed from Earth during the year, the Sun appears to slowly drift along an imaginary path coplanar with Earth's orbit, known as the ecliptic, on a spherical background of seemingly fixed stars. Each synodic day, this gradual motion is a little less than 1° eastward (360° per 365.25 days), in a manner known as prograde motion.
Certain spacecraft orbits, Sun-synchronous orbits, have orbital periods that are a fraction of a synodic day. Combined with a nodal precession, this allows them to always pass over a location on Earth's surface at the same mean solar time.
The Moon's synodic day.
The Moon's synodic day is through tidal locking the same length as the Moon's synodic orbital period.