SJ IM for iOS has an excellent feature that allows you to sort the history on certain dates just by selecting them in the calendar.
Select a calendar in the upper left menu of the application.
In the appeared window pick out the date or clamp several dates.
You can also select the months, years, etc.
Please note that for this action the history of messages has to be activated in the “Settings”.