As mentioned in the previous answer, the length of a day could be anything for any mass/density/size of Earth. It only matters how much angular momentum Earth has, and then you can calculate the time period of one rotation based on its shape and composition. But historically, if the processes which gave Earth its angular momentum gave the same amount of angular momentum to a larger or more dense planet, that heavier planet would rotate more slowly due to a higher moment of inertia. If the density were simply doubled, then the moment of inertia would double, which would halve the angular velocity for the same angular momentum (doubling the length of a day).
As for the length of a year, the orbital period is to first order determined only by the distance to the sun and the mass of the sun (which would still be much larger than the new earth’s mass). Taken from the Wikipedia page,
$$
T=2\pi\sqrt{\frac{r^3}{\mu}}.
$$
Thus, the year would be the same duration, provided the radius of orbit remained the same. But for a twice as heavy Earth, this would again double the angular momentum of the system. If we once again assume a constant angular momentum, then doubling the Earth’s mass would require a reduction of the orbital radius by a factor of four (since angular momentum $L=I\omega=m_{\rm e}\sqrt{\mu r}$, where $I$ is moment of inertia, $m_{\rm e}$ is Earth mass, $\mu$ is gravitational parameter, and $r$ is radius). So in addition to us roasting to death, the length of a year would decrease by a factor of 8.