I have button and calendar component in vision window.
I want to enable and disable it based on date difference paramether.
if the selected date in within the current or upcomming week then the button should be enable.
If the selected date is from the previous week the the button should be disabled.
For eg.
Current Date : 22nd March - Monday
Calendar date : 17th Mach - Wednesday
The the button should be disabled
If
Current Date : 22nd March - Monday
Calendar date : 22 March - Monday or 26 March - Friday or 29 March - Monday
then button should be enable
Its easy to do it inPerspective but struggling with Vision