I would like to convert a date that falls between two dates and times to the first day of the production month.
A production month falls between for example 01/07/2018 07:00:00 and 01/08/2018 07:00:00. The time is important.
So a date falling between these 2 DateTimes (>= 01/07/2018 07:00:00 and < 01/08/2018 07:00:00) should be converted to 01/07/2018. The same needs to happen for all the other months.
A few examples of the desired outcome:
Original_DateTime | Converted_DateTime
15/07/2018 15:42:00 | 01/07/2018
01/08/2018 05:42:00 | 01/07/2018
01/07/2018 03:30:00 | 01/06/2018
01/07/2018 07:36:00 | 01/07/2018
03/08/2018 05:30:00 | 01/08/2018