Hi @hhaw
May be this other related post could help you to find a solution to your question:
In the above post, a workflow shows how to convert the dates into absolute integer numbers which allows to easily compare dates and know which ones are the closest.
Hope this helps.
Best
Ael