How long does a cow have milk before calving?

It depends on the cow. A cow may have anywhere from 0 to 28 days of lactation before calving.