In patients with type 1 diabetes, one half to two thirds of the usual morning dose of intermediate-acting insulin or 70 to 80% of the dose of long-acting insulin (glargine or detemir) can be given the night or morning before surgery (at the usual time of long-acting insulin administration).