Find another job first then quit that one. You'll want to put in a two weeks notice after you know you're going to get hired somewhere else though. You don't need to, but if you do they atleast won't use that against you if you put it under previous job references.
If you don't like the job then you don't like the job. There's no mandatory length you have to work anywhere for another place to hire you.







