The below command works in the terminal interactively but not as part of a bash script . I though maybe I needed to escape the "$dir" so it isn't interpreted literally, but that's not it. Thank you :).
interactively in terminal
dir=/path/to
new=$(ls "$dir"/*.csv -tr | tail -n 1) && echo "the current csv is from: " && date -r "$new" "+%m/%d/%Y"
the current csv is from:
10/31/2019
In $dir the were multiple csv files that were the same name, so I needed to add a condition to remove all but the last modified that matched the file I was looking for.
awk -F, '/Date/ {print $2}' "$new" (extracted the current) that I compared to the date -r "$new" "+%m/%d/%Y" (these had to match) then the $new was unique and the script worked. Thank you :).