This blog is part of our Rails 5.2 series.
Before Rails 5.2, this is how we would write to find next or previous occurring day of the week.
Assume that current date is Tue, 27 Feb 2018.
Rails 5.2 has
to find next & previous occurring day of the week.