I have a Holding directory with files in it that are downloaded from FTP throughout the day.
At any time I need to be able to sort the collection and retrieve the file whose CreationTime attribute is the oldest. This file will then be moved from "Holding" to "Pending".
Since I am using an SSIS package to move the file using a System File Task, I need to manipulate an expression based on the CreationDate variable. Trouble is, I am really unfamiliar with this "expression" language you are faced with using in the Expression Builder.
So, how would I retrieve a file whose creation date is the oldest using an expression script?
Or is there an easier way to do what I want to do with a Script Task?