tdap vaccine? breast feeding?

Jane
So I was just told about the tdap from my dr.. I'm almost 36 weeks is it late for her to be telling me now? Read baby needs 6 weeks for immunity? When do they get the tdap as well? If I wait till delivery, will he has immunity through breast feeding? Sorry soon to be FTM and have yet to get tdap.