How to abstract date from current date

how to abstract date from current date(eg.6-8-2019 -30-1-2022)