This question is quite impossible to answer with guarantee. There are huge individual variations in how long it takes to pick up programming. Some people learned to program in just a month, some in half a year and others in more than 2 years!
Of course, if your only task in life from this moment is to learn to program and you have nothing to distract you in your way, you’re probably going to get the basics down in just a month.
What is unquestionably true is that you can’t learn to program just by reading the posts, watching the videos or listening to some tutor. You’ll need to try out all the codes yourself, and try to think of ways to elaborate upon it, or else Google for exercises. Or even better (and also my favorite method), think up your own simple programs to write, like text-based games that ask people to guess things or get them to answer questions. Attempting to write your own programs is a sure route to programming success, but it will take time.
Remember, programming requires concentration and a lot of time. It’s really only worth learning to program if you think it’s the kind of thing you might enjoy doing. If you just need money, go somewhere else because there are many ways to earn money, easier than programming.