STD screening

Hi, I am just wondering how long after a possible exposure can you get tested for HIV?