How far in advance should I apply for a job?

I m moving in mid July and I was wondering how far in advance should I apply for a job. It s just retail jobs I m applying to.

?2016-04-25T13:49:29Z

TWo weeks out so you can walk on after they vet you.