Improved handling of due dates with date variables.