How to disable dates dynamically?