Hi I've been searching for a while now and I cant seem to find the answer to this.
I have to code a function in javascript that takes in a numbers of days in parameter and then transforms it into a more understandable string.
Ex :
function getFormatedStringFromDays(days)
{
var formatedString = "";
//... logic
return formatedString;
}
So getFormatedStringFromDays(183)
is returning something like 6 months 3 days
.