Hi,
You can assign the fileInfo to a varaiable of type FileInfo and then can access the lastModifiedDate of that variable not directly from FileInfo. Screenshot below shows:
Perhaps there’s a conflict between the variable “FileInfo” and the class “FileInfo”. Could you try renaming your “FileInfo” variable to something else?
It does not make much difference. There are only some fundamental differences in the metadata presented by both functions but GetaLastWriteTime seems to be giving the last modified date & time pretty accurate.