Added support for past dates.