Add the support to use a Date object as value for min and max options

Add support to use a Date object as value for min and max options
* Closes #1255
* Add test suite

@nghuuphuoc Please review before merging !