Let's say I have a bunch of dates as such:
2018-11-19 08:00:03
2018-11-19 12:00:02
2018-11-19 16:00:01
2018-11-19 20:00:10
2018-11-20 00:00:09
2018-11-20 04:00:08
2018-11-20 08:00:07
2018-11-20 12:00:06
2018-11-20 16:00:04
2018-11-20 20:00:03
2018-11-21 00:00:02
2018-11-21 04:00:01
2018-11-21 08:00:10
2018-11-21 12:00:09
2018-11-21 16:00:08
2018-11-21 20:00:07
2018-11-22 00:00:06
2018-11-22 04:00:04
2018-11-22 08:00:03
2018-11-22 12:00:02
2018-11-22 16:00:01
2018-11-22 20:00:10
2018-11-23 00:00:09
2018-11-23 04:00:08
2018-11-23 08:00:07
2018-11-23 12:00:05
2018-11-23 16:00:05
2018-11-23 20:00:04
2018-11-24 00:00:03
2018-11-24 04:00:01
2018-11-24 08:00:10
2018-11-24 12:00:09
2018-11-24 16:00:08
2018-11-24 20:00:08
2018-11-25 00:00:06
2018-11-25 04:00:04
2018-11-25 08:00:03
2018-11-25 12:00:02
2018-11-25 16:00:01
2018-11-25 20:00:10
2018-11-26 00:00:08
2018-11-26 04:00:07
2018-11-26 08:00:06
2018-11-26 12:00:05
2018-11-26 16:00:04
2018-11-26 20:00:02
2018-11-27 00:00:01
2018-11-27 04:00:10
2018-11-27 08:00:10
2018-11-27 12:00:08
2018-11-27 16:00:06
2018-11-27 20:00:05
2018-11-28 00:00:04
2018-11-28 04:00:03
2018-11-28 08:00:02
2018-11-28 12:00:11
2018-11-28 16:00:09
2018-11-28 20:00:08
2018-11-29 00:00:07
2018-11-29 04:00:06
2018-11-29 08:00:05
2018-11-29 12:00:04
2018-11-29 16:00:03
2018-11-29 20:00:02
2018-11-30 00:00:01
2018-11-30 04:00:10
2018-11-30 08:00:09
2018-11-30 12:00:08
2018-11-30 16:00:07
2018-11-30 20:00:06
2018-12-01 04:00:04
2018-12-01 12:00:02
2018-12-01 20:00:10
2018-12-02 04:00:08
2018-12-02 12:00:05
2018-12-02 20:00:04
2018-12-03 04:00:02
2018-12-03 12:00:10
2018-12-03 20:00:08
2018-12-04 04:00:01
2018-12-04 12:00:08
2018-12-04 20:00:05
2018-12-05 04:00:02
2018-12-05 12:00:09
From the first date, I want to figure out the last date a week from then. So, from "2018-11-19 08:00:03", I want to get "2018-11-26 04:00:07" (a week from 11/19/2018 at 8:00:03 would be anytime on or before 11/26/2018 at 8:00:03).
I'm for some reason having a mental lapse with this. Do I do something to figure out the difference in datetime? How am I to elegantly check whether or not it's the last date in the current week?