Given two dates D1 and D2, find the number of days and months between them.
Asked in the bar raiser stage. Implement a function that takes two dates and returns the difference in days and months. Assume the dates are valid and may be in any order.
D1, D2: date values in YYYY-MM-DD format(days, months) where days is the absolute day difference and months is the absolute whole-month difference.def date_difference(d1, d2):