#1255, #1258: Support to use a Date object as value for min, max options, thanks to @Arkni