Data partitioning is a fundamental step in predictive modeling. For time series, partitioning is done differently from cross-sectional data.
This video supports the textbook Practical Time Series Forecasting.
http://www.forecastingbook.com
http://www.galitshmueli.com