Added confg option to disable past dates