title: Print a file's last modified date in Bash
body: <p>I can't seem to find how to print out the date of a file. I'm so far able to print out all the files in a directory, but I need to print out the dates with it. </p>
  
  <p>I know I need to attach a date format with the echo of the entry, but all I can't find the correct format.</p>
  
  <pre><code>echo "Please type in the directory you want all the files to be listed"
  
  read directory 
  
  for entry in "$directory"/*
  do
    echo "$entry"
  done
  </code></pre>