df = pd.DataFrame({'Date':pd.date_range('2017-01-01', periods = 60, freq='D')}) df.Date.dt.strftime('%Y%m%d').astype(int)