confused

didn't get my periods last month, too a PT and wasn't pregnant. didn't get it again this month, took a test this morning and im pregnant. when did it happen?