I don’t know personally but I found this online, The Chinese flag was first hoisted on October 1st 1949 on the occasion of the founding of the PRC, People’s Republic of China.
Before then, the previous flag of China was the “Yellow Dragon Flag”. This Chinese flag was used in the Qing Dynasty. The Qing Dynasty is the last imperial dynasty in China’s history.