This may be impossible - it will depend on your FTP server. You have to issue a dir() command, this will give a "long listing" of the remote directory. Often this will include a timestamp (which you will have to parse yourself), but I've encountered FTP servers that only list the file names, and nothing else. IIRC, there isn't a fixed format, although output similar to "ls -l" is common.
The last entry returned will often not be the latest file.
Abigail