added date control for showing only valid dates