I would like to put the output of a command into a variable. As far as I know, you have to use either of these:
The following should work from my point of view:
for i in $(ls -1); do modTime=$(/usr/gnu/bin/date -r $i +$F) echo $modTime done
I tried backticks as well; nothing changes. If it is important, it's a bash shell.