I have 2 arrays of dates. I need the most efficient way to build a third array of dates that consists of only the dates that are the same from the 2 arrays of dates.
For example:
List of Dates #1:
2017-01-01
2017-01-02
2017-01-03
2017-02-01
2017-02-02
2017-09-09
List of Dates #2:
2017-01-01
2017-02-01
2017-03-01
2017-04-01
So array 3 should be:
2017-01-01
2017-02-01