allow proper date comparison