Hi, I want to find the difference b\w 2 dates which i have done and have a value in milliseconds.
remainingDate = Math.abs(Date.parse(mytDate) - Date.parse(currentDate));
It gives value in millisecond i want to covert the value into remaining days, month and year, (i.e if myDate = 26 Oct 2020, and current date is 24 July 2017. The output should be like: 2 days, 3 months, 3 years.
How can I get like this output?