I suspect this is similar to establishing a new habit. And this can vary from person to person & depending on what habit we're talking about. Here's a link to an interesting Huffington Post article on the subject:
How Long Does It Actually Take to Form a New Habit? (Backed by Science) | HuffPost