30 days.
At 12306, you can book train tickets for up to 30 days. The pre-sale period for online ticket purchase and telephone booking of the whole railway is 30 days before the departure, and the pre-sale period for station ticket window, railway ticket agency and self-service ticket vending machine is 28 days before the departure. The days of the pre-sale period include the current day.