Form and rules
How it works
Use the past simple with finished past-time expressions such as yesterday, last year, in 2022 and two days ago.
Use the present perfect when no finished past time is stated and the experience or present result is important.
Questions with When...? normally ask for a finished time, so they usually use the past simple.
Use the present perfect with for and since when a state or situation started in the past and continues now: We've lived here for five years.
Do not put a finished past-time expression with the present perfect: say I saw it yesterday, not I have seen it yesterday.