Date Difference – Month and Date Only

[ad_1]

How can I use the Date Diff function but restrict the difference to just month and day?

For example:

(function(){
var obj = DATEDIFF(fieldname2, fieldname3, ‘mm/dd/yyyy’, ‘d’);

return (obj[‘days’]);

})()

I want to find the difference in days between the month and day not including the years.

I tried:

(function(){
var obj = DATEDIFF(fieldname2, fieldname3, ‘mm/dd’, ‘d’);

return (obj[‘days’]);

})()

but it didn’t work.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer