Denmark’s prime minister will not stand in the way of a possible postponement of the deadline for Britain’s departure from the European Union if that helped avoid a no-deal Brexit scenario.