Don't forget to buy food and drinks in advance if you need them: train stations do not always have shops, while onboard cafés are not always available and often very expensive.
When travelling on such short distances, you can take into account also busses and carpooling options: with some luck you will find very cheap options, even if you book on short notice.
In which stations can you take the train to Bangkok and where will you arrive?
The trains to Bangkok will leave from นครปฐม or พุทธมณฑล สาย 2 and will arrive at จรัลสนิทวงศ์.
What time do the trains to Bangkok leave and how long is the journey?
The average duration of the journey is 50 minutes, but the fastest connections take you to Bangkok in 17 minutes. The first train leaves from Nakhon Pathom at 06:11, while the last one leaves at 20:11.