161
rated 0 times
[
165]
[
4]
/ answers: 1 / hits: 20652
/ 8 Years ago, sun, may 29, 2016, 12:00:00
I have an array of dates formatted as MM/DD/YYYY. I need to find the next closest date in the future starting from today. Say today was 1/22/2016 then 2/19/2016 would return.
2/3/2015
7/5/2015
1/21/2016
2/19/2016
7/1/2016
I've tried doing substrings to get the month, day, year separate and attempting a sort based off those values but surely there has to be a better way.
More From » arrays