You want to veg for at least MINIMUM 3 weeks.
4-6 weeks is a reasonable amount of time.

If you want to veg to your plant's peak... the best would be until it starts to show it's pre-flowers.
When it shows pre-flowers that your plants sign of say "Hey YOU, I'm reading to flower now and I am fully mature. I want 12/12 lighting now!"