Can You Transfer Utilities Before Closing?

When buying a house when do you transfer utilities?

.

Should I transfer utilities before closing?

Can I turn off utilities before closing?

How long before closing should you set up utilities?