خرید بک لینک

Vote count: 0

I'm looking for an 'elegant' solution to get the number of the days between a specific date and now.

I manipulate dates using date.js, and I prefer to use date.js in the solution.

function relatedDays(relatedDate){

var diff= Date.today()-relatedDate;

return ???

}

var tomorrow=Date.today().addDays(1);

relateDays(tomorrow); // result : 1

asked 28 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 22 ارديبهشت 1396 ساعت: 4:38

صفحه بندی