Only allow the last friday in month date picker don´t work for me

I want to enable only the last friday in each month in my datepicker. In another example I found a code-snippet but this dont work for me. Maybe my tracker use other atribute-names?! How I can do this? var monthDays = new Date(date.getFullYear(),date.getMonth() + 1,0).getDate(); var day = date.getDay(); return [( (day==5 && date.getDate() >… Read More Only allow the last friday in month date picker don´t work for me