I need to calculate the number of weeks difference between the chosen date and the current date. I've tried to calculate with weekNumberPicked - weekNumberCurrent
, but if the two dates are in different years, the result is incorrect, so I probably need to get it like daysDifference / 7
. How should I implement this with the onSelect
action?