updated to use data date instead of date the script was run.