The OP is asking two separate questions.
- The dating of Herod's and Pompei's conquest of Jerusalem according to Josephus
According to the article by Andrew Steinmann "When Did Herod the Great Reign?", p.8 the quote from Josephus is:
. . . this destruction befell the city of Jerusalem when Marcus Agrippa and Caninius Gallus
were consuls in Rome on the one hundred eighty-fifth Olympiad, on the third month, on the solemnity of the fast,
The comment in the article explains the dating:
The consular year and Olympiad given by Josephus indicates that Herod took Jerusalem in 37 BCE. It was the Day of Atonement ("the fast") on 10 Tishri in the Jewish calendar, but the third month (September) in the Greek calendar.
In other words, Josephus is using Greek calendar, and Herod captured Jerusalem on Yom Kippur. If we were to believe that Herod captured Jerusalem exactly 27 years after it fell to Pompei, then we have to accept that Pompei also did it on Yom Kippur. However the dating of Josephus is unreliable, as the quoted article shows.
- What could be the actual dating of the Pompei's siege
According to the wikipedia, Pompei's siege of Jerusalem lasted 3 months
After three months, Pompey's troops managed to overthrow one of the Baris towers and were able to enter the Temple precinct, both from the citadel and from the west. First over the wall was a senior officer in Pompey's army named Faustus Cornelius Sulla, the son of former dictator Sulla. Faustus was followed by two centurions, Furius and Fabius, who each led a cohort, and the Romans soon overcame the defending Jews, 12,000 of whom were slaughtered. Only a few Romans troops were killed.
and the historical site Livius.org states:
Hyrcanus' followers allowed Pompey to enter the lower town of Jerusalem, but Aristobulus' adherents, the Sadducees, still occupied the Temple. In the west, there was a bridge between the Temple and the city, but this had been destroyed; in the south and east, there were deep valleys. Therefore, Pompey decided to attack from the north. (They only worked on the siege dam on the sabbaths, because the Jews could defend themselves on that days, but were not allowed to attack.) When the siege dam was completed, towers were rolled towards the wall of the Temple. Catapults kept up a continuous pressure by hurling heavy stones; a battering ram broke the wall, and Pompey's soldiers entered the Temple terrace, where they started to kill the defenders. Many Jewish soldiers committed suicide, because they did want to see the profanation of the sanctuary (June/July 63).
If indeed Pompei captured Jerusalem on a fast day, most likely the fast in the OP's question is the Fast of the 17th of Tammuz or Fast of Sivan 23rd as suggested by Whiston.