login about faq

do u have sample vb6 code for

FileTime time = Files.getLastModifiedTime(file.toPath());
I need to get date/time last modified stamp of a file on the ftp server.

asked May 26 at 07:48

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


In VB6 there is the Date data type. For example, to get the last-modified date/time for a local file in the filesystem:

Dim MyStamp As Date
MyStamp = FileDateTime("C:TESTFILE.txt")
With Chilkat, you want to stay away from the deprecated methods and properties. Some of the date/time related methods are deprecated. Using non-deprecated methods, you would do this:
Dim dt as CkDateTime
set dt = ftp.GetLastModDtByName("FILE_ON_SERVER.txt")
Dim MyStamp As Date
' To get in the local timezone, pass 1,  To get GMT/UTC, pass 0
MyStamp = dt.GetAsOleDate(1)

link

answered May 26 at 07:54

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×90
×36
×3
×2

Asked: May 26 at 07:48

Seen: 390 times

Last updated: May 26 at 07:54

powered by OSQA