Add an option to limit the range for date elements.