I once had a base attack on the 3rd day by Sectoids, and I managed to just barely survive it by carefully using proximity grenades, rockets, and heavy cannons with HE rounds.
Then it got attacked again a few days later, and I lost.
That's X-COM, baby!