How to divide days into date format in Postgresql

I have 2 date columns like:

enter image description here

Date1                       Date2
-----------------------------------------------
2018-03-05 10:15:15         2018-03-08 14:15:15  

I want output Like Day wise split columns

 2018-03-05 10:15:15     2018-03-05 23:59:59
 2018-03-06 00:00:00     2018-03-06 23:59:59
 2018-03-07 00:00:00     2018-03-07 23:59:59
 2018-03-08 00:00:00     2018-03-06 23:59:59