FileInfo FileDate

OSVBNET 1,391 Reputation points
2022-07-31T18:24:00.333+00:00

Hello,
CreationTime, LastWriteTime, LastAccessTime
The msdn article does not provide much info, if we pass the correct existing file to the FileInfo object, on any Windows (NT) with any file system, is it possible that a file does not have one of those 3 date properties?
If so exception will be thrown or nothing/empty value or DateTime.MinValue?

and LastAccessTime is set at the CreationTime and must exists with the minimum or newer value of CreationTime right?
Thanks :)

Windows development | Windows API - Win32
Developer technologies | VB
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,551 Reputation points
    2022-08-01T00:45:28.193+00:00

    The msdn article does not provide much info, if we pass the correct existing file to the FileInfo object, on any Windows (NT) with any file system, is it possible that a file does not have one of those 3 date properties?

    According to https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times -
    "Not all file systems can record creation and last access times, and not all file systems record them in the same manner."

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.