I think it was around 34 weeks for me with DS. I worked up until 38 weeks and definately DO NOT recommend working for that long. It was absolute agony. I dont know how i made it through.
Just make sure you have some time for you and some time to rest and take it easy.. its a very long road ahead .. but a very rewarding one