Paternity test

Can someone please tell me when the earliest is that I could do a paternity test?