How long does it take for HIV to be detected in tests?

I had an exposure to HIV two years ago but I am still testing negative. Should I be worried?