According to the gospel of John, the disciples received the Holy Spirit when Jesus appeared to them after the resurrection.
But according to Acts, it was at least a few days after that. It says on one occasion (which could have been as many as 40 days after the first time he reappeared to them), he told them they would be baptized with the Holy Spirit in a few days. That was a gift they had not yet received. And Jesus was not present when the tongues of fire later came down on them and filled them with the Holy Spirit.
Acts also has them get filled with the Holy Spirit again two chapters later. (Though that time, it’s probably talking about more people than just the original disciples who had already been given the Spirit.)