The hexagram is derived entirely from the solar date of inquiry. The day's heavenly stem (from the lunar calendar) determines the Six Spirits arrangement.