How long does it take to form a habit?

In 1960, Dr Maxwell Maltz discovered that it took 21 days for patients to get used to the results of an operation and adjust to new routines.

He wrote: “These, and many other commonly observed phenomena tend to show that it requires a minimum of about 21 days for an old mental image to dissolve and a new one to jell.”