It depends on your adaptation.
If you will go to the market and search for a digital marketing institute. Then you will find many institutes. They will promise you to teach digital marketing in 2 months, 3 months, etc.
But in actual in 2 months or 3 months not enough to learn digital marketing. You have to give the proper time.
Because knowing the digital marketing concept is not hard. But implementing is not quite easy.