Constellations are determined by the date of the solar calendar. Lunar calendar1August, 997 16 has a Gregorian calendar date of1September, and the constellation of that day is Virgo.
Lunar calendar: August 16th in the Year of the Ox.
Stems and branches: Ding Chou is self-righteous.
Gregorian calendar:1September 9971July Wednesday Virgo.
Source: Hua.com.