When is the deadline for cancelling a standing order payment?

A standing order can be cancelled up to and including the day before the next due date.