With my oldest, I had to be taken off work about a month before my due date because of complications. I ended up having him three weeks later.
With the next three, I worked until the week of the birth. I wanted my time off to be after the birth, not before. Things were in order all four times, no risk of leaving anything half-done. We all worked together regardless, someone being out with no notice wouldn't have left the rest of us in the lurch.
With the last, I was working a good portion from home already anyway, so I didn't really take time off.