Comparing time and date values from strings and putting them in order

I have four arrays, each array contains date,time,info specified from a picker. I would like to find the item with the closest date and time out of all the items within the four arrays to the current date and time. Here’s a few example strings

”31.10.2022,01:00,Halloween”

“1.4.2023,00:00,April fools day”

Obviously halloween will come before April fools day judging by the date, even though the time is one hour behind. Ideally the code would check the date first and if they are the same then it would check the time.