0
Answer

About Ftp Directorylist method

Demir Acar

Demir Acar

9y
447
1
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.