LastmodifiedDate is not a member of fileinfo


Hi Everyone,

i am facing this issue i did clear it out and retype still it is not working

Hi,

Can you try to replace e1.LastModifiedDate with e1.LastWriteTime because e1 is FileInfo.

Regards,

@Farooq_Syeda,

You can use another approach to get last modified file from Downloads

Thanks,
Ashok :slight_smile:

what is the difference between them

@Farooq_Syeda
give a try at the following

  • put the statement into the clipboard (str+c) or get it saved otherwise before
  • delete the assign activity field (right side)
  • strg+s
  • then paste it again in once (STRG+V)

Hi,

what is the difference between them

LastModifedDate is from FileInfoExtensions and it returns string. It’s not good for sorting because its MM/dd/yyyy style.

image

LastWriteTime returns DateTime type.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.