Dir and sorting by date modified

Hi

I am getting a list of files in a folder which I can do no problem, but now they want the files in date order of date modified. Does anyone know how I get the date modified from the file. I am currently getting the document by using

file = dir(fullPath, 0)

which only returns the name of the file

thanks

Subject: Dir and sorting by date modified

It looks like the FileDateTime ( fileName ) function will return the created or last modified date for a file. I’ve never used it, so my knowledge of it is limited, but that should at least point you in the right direction.

Subject: RE: Dir and sorting by date modified

fantastic, I didn’t see that one, works perfectly…