It's not really a matter of months/years. If you've built an application (or piece of an application) that other people use or have used, I'd say you can call yourself a programmer. (Though your skill level may still be in question.)
If you haven't built something yet, do that. If you're new to the field, having something to show off and talk about in an interview is a big win.