it depends on what you want from the plants. If you are interested in keeping them small size/yield, 4 weeks is good. If you want better yeilds 5-6 weeks is good. If you have the time and space you can veg as long as you want.
Edit: my reply is assuming you mean growth from seed to 12/12.