You'll be fine. Milk generally doesn't go bad right at the sell by date. That is a 'sell by' date, not a 'best if used by' date. Milk goes bad when it smells and tastes sour.
Using milk in a recipe is a whole other story. It's chemistry will change when it gets mixed with other ingredients and baked, so no worries. Your cake is safe.