I'm using momentjs to determine wether or not a date is a persons birthday. But for some reason moment always returns false and I'm not sure why.
Used code
moment(dateObject).isSame(moment(otherDateObject), 'day')
What is returned when logging the individual dates and the isSame()
Any ideas on what the issue is here? As you can see the only difference in the 2 moment instances is the year.
From momentjs
Passing in day will check day, month, and year
So how do I check if it is the matching day and month then?
