it was the first time that OR when

Hi,

Could you please tell me which is better?

It was the first time that I had been there.
It was the first time when I had been there.

Thanks
Liza

Hi Liza

Use ‘that’. (The word ‘that’ can also be omitted.)
It was the first time (that) I had been there.
.

Amy’s right.

You could use the other in this way:

It was the first time when I had been there that …
It was the first time, when I had been, there that…