Some defendants can spend months in jail before they are deemed competent by a mental health professional to stand trial. If the defendant is not found to be competent, they are usually sent to a state psychiatric facility until they can meet the legal standard.