title: Getting Date from a file on a remote FTP Server
body: <p>To get a file, the Method looks like this:</p>
  
  <pre><code>$ftprequest.Method = [System.Net.WebRequestMethods+Ftp]::DownloadFile  
  </code></pre>
  
  <p>So, I am trying to change the Method to be equivalent to the C# code below:</p>
  
  <pre><code>request.Method = System.Net.WebRequestMethods.Ftp.GetDateTimestamp;
  </code></pre>
  
  <p>How can I use GetDateTimestamp  in powershell?</p>
  
  <p>I have tried the following variations without any luck yet:</p>
  
  <pre><code>$ftprequest.Method = [System.Net.WebRequestMethods+Ftp.GetDateTimestamp]
  $ftprequest.Method = [System.Net.WebRequestMethods+Ftp+GetDateTimestamp]
  $ftprequest.Method = [System.Net.WebRequestMethods.Ftp.GetDateTimestamp]
  $ftprequest.Method = [System.Net.WebRequestMethods.Ftp+GetDateTimestamp]
  </code></pre>
  
  <p>bonus question:  what is the :: mean on the first code example mean?</p>
  
  <p>Thanks!</p>