to set between two dates