let departDateArr=['2020-10-13 12:00','2020-10-03 13:00','2020-10-13 8:00','2020-10-16 20:00']
let arriveDateArr=['2022-12-20 00:00','2022-12-20 12:20','2022-12-19 12:20','2022-12-08 12:20']
I want to retrieve the minimum time in the departDateArr array
I want to retrieve the maximum time in the arraveDateArr array
How to get the desired time data through time comparison ?