How long can I wear thermal underwear without taking off without harm to health?

Do

long wearing thermal underwear bad? Can I wear it every day for a whole day? Can I sleep in it, if the room is cold?