var dateArray = ['11/01/2020', '10/01/2020', '09/01/2020', '07/01/2020', '06/01/2020']
If I have a date 08/01/2020
, then I need to find its previous closest date in the array which is 07/01/2020
. I am omitting the time but that will also be part of the date.
1 thought on “Previous closest date from array of object”