Re: get file based on date
One of these two examples may help you:
https://winscp.net/eng/docs/script_download_timestamped_filename
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/script_download_timestamped_filename
https://winscp.net/eng/docs/script_download_most_recent_file