improved support for selecting dates