Write a function that receives two strings as parameter. These strings are in the following format
of date: YYYY/MM/DD
. Your job is: Take the years
and calculate the difference between them.
'1997/10/10' and '2015/10/10' -> 2015 - 1997 = returns 18
'2015/10/10' and '1997/10/10' -> 2015 - 1997 = returns 18
At this level, you don't need to validate months and days to calculate the difference.