You need "ls -l" (the letter l) for displaying the date, but not for extracting the filename.
So maybe this helps:
filename indata pipe "ls -1 &logdir | grep '&mdate' | cut -c52-";
"cut" display's from columns52 and more, so this is only the filename.
... View more