How to disable future date in date picker

Hi! Is there a way to disable future dates in the date picker?

Hi @ghegde ,
As part of the date filter definition, you can setup the end date to be relative. Is this what you were looking for?
Screenshot 2023-12-07 at 3.11.29 PM

1 Like

Thank you for the reply. But, the feature I am looking for is , user cannot select any date after the present /current date. Is that possible ?
image
As you can see in the picture, current date is 12/8, anything after 12/8 should be unvailable for selection.

Thank you!

Hi @ghegde ,

Are you using a date filter? Can you please provide a screenshot of your filter configuration?

1 Like

Calculated field
ifelse(
truncDate(“MM”, ${Inmonth}) = truncDate(“MM”, ${Inmonth}),
1,
0
)

filter

Not using 1 date filter as I have a case start date and case end date (2 fields available) .

Got it. There is a workaround for your usecase:
If you are already embedding your dashboards, you can use parameter in the url and JavaScript.

Example - JavaScript Date Range Picker

Otherwise, the date picker does not disable future dates out of the box.

Thank you very much!