We would be able to help you better if you shared which date picker you are using and a little bit of the code you are using. How is the date picker being disabled? Does the user do it, or are you doing it programmatically?
Most date pickers provide a method in their API to enable/disable the plugin. Please search the documentation.