I want to create date range between specific dates with a certain sampling within each day, but each day should start at midnight:
['2017-01-01 00:00:00', '2017-01-01 05:00:00','2017-01-01 10:00:00', '2017-01-01 15:00:00', '2017-01-01 20:00:00', '2017-01-02 00:00:00', '2017-01-02 05:00:00' ...]
Of course, in default pd.date_range(date1,date2,freq='5H') gives the output:
['2017-01-01 00:00:00', '2017-01-01 05:00:00', '2017-01-01 10:00:00', '2017-01-01 15:00:00', '2017-01-01 20:00:00', '2017-01-02 01:00:00', '2017-01-02 06:00:00', ..]
Any idea of how to handle this issue? Thank you!