Topic "Datetime, with Seconds"

Author Message


Good Morning,

First of all, thanks a lot for all your effort to create this library.

I'm creating a in VB.NET software wich will manipulate several images on a FTP server.
The first function it's to sort the images by date and TIME, expecialy SECONDS.
my routin will read all file in a directory and then sort them by date-time wich it's very very important to include seconds.
I've tried witht he normal FTP request (ListDirectoryDetail) but it only show the date/time with minutes.
I've tryed to run a FTP in PowerShell with normal FTP command but also it show only Minutes.

I've tried then to use your VB.NET example, but i've several problem.
In this case in the FTPFileInfo, the date/time it's wrong (seems it does not reconise at all) and display date :1/1/0001

I've debugged the return from the server in the function "ListDirectoryDetails" and i see this :
"-rw-rw-r-- 1 3295178 membri 42690 Jun 28 18:18 Schedule_20170628-181808.jpg" & vbCrLf

I think there are some problem with REGEX to convert in FTPFileInfo.
But as i can see , even if the REGEX was correct, the string does not contain the Seconds.

How i can sort my files ?
I just want to add that the WinSCP client , works perfectly and it shows the files with seconds.
ftpcommand.png (29.88 KB)

Description: (none)


WINSCP client.png (116 KB) [Download]

Description: (none)

ftpFileInfoFTP.png (32.52 KB) [Download]

Description: (none)

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Please attach a full session log file both from .NET assembly and GUI.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License