in progress---fixed bug where can't set date in the past