I was always taught to squawk 7000 Mode C as soon as I had switched the landing light off on after take off checks (unless in the circuit) and switch it to STBY when I had the airfield in sight and switched my landing light on.
Current thinking is that you turn your transponder on before take-off and turn it off after landing. It doesn't get much simpler than that.