title: How to get the last-modified date of files on FTP server
body: <p>This is my code</p>
  
  <pre><code>FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create(FTPAddress);
  ftpRequest.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
  FtpWebResponse response = (FtpWebResponse)ftpRequest.GetResponse();
  StreamReader streamReader = new StreamReader(response.GetResponseStream());
  
  List&lt;string&gt; directories = new List&lt;string&gt;();
  
  string line = streamReader.ReadLine();
  while (!string.IsNullOrEmpty(line))
  {
      directories.Add(line);
      line = streamReader.ReadLine();
  }
  </code></pre>
  
  <p>As you see, I am using <code>ListDirectoryDetails</code>. </p>
  
  <p>For every line in the <code>directories</code>, this is the content:</p>
  
  <pre class="lang-none prettyprint-override"><code>ftp://172.28.4.7//12-22-14  01:21PM                 9075 fileName.xml
  </code></pre>
  
  <p>My question is how to get the time from that line? Should I parse the string? I don't think so because I read that there is the <code>LastModified</code> property, but I don't know how to use it.</p>
  
  <p>Could you help me please?</p>