Values passed to setEnabledFrom() and setEnabledTo() must be instances of DateTime, and not strings.