When to buy the baby cot and car seat?

I am 34 weeks. I am not sure when to start? Also. What to buy for a newborn?