support date env variable to limit input range