Added ability to pass objects

For setMinDate and setMaxDate