Need help in writing the formula to find the date between two different time period

Example :
If the B2 value is between 6/1/18 8:00 AM to 6/2/18 8:00 AM then need C2 to show date at 6/1/18
similarly if B2 value is between 6/2/18 8:00 AM to 6/3/18 8:00 AM then need C3 to show date as 6/2/18