Demir Acar

Demir Acar

  • NA
  • 98
  • 25.5k

About Ftp Directorylist method

Jun 8 2015 6:19 AM
Hi guys ;
 
I have a question about FTP method ,the WebRequestMethods.Ftp.ListDirectoryDetails;
return this format " 06-04-15 09:03PM 1127652 filenamze.zip " 
 
I want to change date format such as 2015-06-04 or 04-06-2015
 
Data Column is ;  new DataColumn("Last modified", typeof(string))});
 
if I change to datacolumn type as Datetime ,the respond return below error
 
String was not recognized as a valid DateTime.Couldn't store <05-21-15> in Last modified Column. Expected type is DateTime.