how to calculate a Year, Month and Days from DOB

how to calculate a Year, Month and Days from DOB

Hi,
How to calculate a Year, Month and Days from DOB

For example:

DOB = 30-May-1995

Date = 22-Jun-2019

output like:

Year - 24
Month - 0
Days - 23