Added support for maximum and minimum dates