Date.fns with ionic3

I need to use difference between two dates using date.fns with ionic3
any one help on this
with full source code html and Ts

You have to decide what unit you want the difference in, but the docs describe all the different options. Asking for “full source code” is just downright rude and lazy.

I try to use moment and data.fns i could not, i didn’t understand the data-fns much