A Milk Pail can be purchased from Marnie for 1,000G. When your cow can produce milk, you need to use a Milk Pail to milk it.
It takes five days for a cow to mature, after which it can produce milk. Once you’ve built a barn on your farm, you can purchase a cow from Marnie for 1,500G.