Define a day by the passage of the sun

You just did.

A day is the time interval between solar crossings of the celestial (north-south) meridian.