This project is read-only.

Modify DateTime Issue

Jul 18, 2011 at 8:39 PM

All of my modified datetimes are coming back as 1/1/0001 12:00:00 AM. Is this the default if the modified date cannot be determined? 

Jul 18, 2011 at 8:49 PM

Yes, DateTime.MinValue is returned if MDTM is not available or there is a failure parsing date time values returned from the server. You can hook into the message event handler of FtpClient to log responses from the server or if you're using visual studio or any ide that supports Debug.WriteLine() build a copy of the ftp library with DEBUG defined and observe the output window to see what's being returned from the server when a modification date is retrieved.