Notice how "constrain" exists, along with the from/to date properties. In the documentation these three are "Properties" and not "Config" options. I've attempted to do this same thing in my code and found that anything that's a Property doesn't seem to work this way.