Getting the latest date chats from conversation history

Hi, I have to select the chats of the latest date from conversation history. I have used datascrapping can anyone suggest how can i proceed further to get the latest date chat for every user ?


Check the data and mostly you might get a placeholder like today and yesterday…

Or the date would change for each like of conversation…

Try to first get the date that you have at the last or first depending on how your data is orcganized and for each line check if date is changed