Changed how the dates are accessed, hopefully fixing the daily record
issue.