How did the yellow code turn green? It takes seven days. The general health code is yellow code, which needs to be collected at home or isolated for 7 days, and it will be turned into green code after 7 days of continuous health declaration. If you have been to an epidemic area, you need to be strictly isolated until it becomes a green code. If you haven't been to an epidemic area, you can give feedback by appealing.