Enabled disable date using conditions is not working