It took me 3 weeks to learn Pascal programming and Basic programming in 1 week. But I was already a computer programmer during that time so it was easy. My first programming language was COBOL that I learned in 13 days for 6 hours a day of lecture and worksheet. That was in IBM Philippines which was the traditional classroom learning. Maybe you can learn programming now in 2 months or even less if you will have a tutorial assistance or consultant, the one you can ask if you have a question that blocks your learning progress.