04-13-2020 09:20 AM
04-13-2020 09:23 AM
07-09-2020 08:12 AM
Hello panzer099,
can you tell me how you can display the date in "dd/mm/yyyy"?
I only receive "mmm dd hh:mm".
Thank you
07-09-2020 10:04 AM
Hi Marcoh,
you can dive into the inner guts of the FTPDirectoryListing function.
So you can put a probe on the data that the "LIST" command reads from your FTP server: does that server even send the full date/timestamp information as requested?
07-13-2020 12:57 AM
Hi GerdW,
thank you for your reply. This is the whole String which I receive: "-rw-r--r-- 1 ftp ftp 5 Jul 08 13:29 Test.txt".
07-13-2020 01:25 AM
07-13-2020 02:36 AM
Sorry Gerd, I don't get it.
07-13-2020 02:55 AM
Hi marcoh,
@marcoh87 wrote:
Sorry Gerd, I don't get it.
When the FTP server sends the correct data, but NI's implementation of the FTP VIs does not parse the data correctly then you might create your own "FTP List" VI which does provide the correct data.
Use the existing NI implementation as a guide line when you create your own copy of this VI!
07-13-2020 03:02 AM - edited 07-13-2020 03:12 AM
It seems to work when I receive the file info from an older File (one year ago). Then the format is mm dd yyyy.
Furthermore I will test your way. Thank you!
07-14-2020 03:51 AM - edited 07-14-2020 03:52 AM
It's definitely a server side issue. The FTP protocol was originally developed for command line operation. The parser on the receiving side for the List Directory command supposedly was meant to be a human, and humans are surprisingly good at guessing the correct thing from incomplete or changing information. So the actual formatting was not strictly defined and mostly just tried to be the same as whatever the according ls (Unix list command) would produce.
@marcoh87 wrote:
It seems to work when I receive the file info from an older File (one year ago). Then the format is mm dd yyyy.
Furthermore I will test your way. Thank you!
Could it be that these files are then on different volumes somehow? It seems that the older files get listed according to a different locale than the newer files. The locale on Unix based systems is the combination of country and language specific settings for numeric and date//time formats. There is nothing LabVIEW can do here for you. The problem is at the other side with the FTP server.