You can try as below. Hope it should work in your case.


Expression to get last file : Directory.GetFiles(yourfolder_path,“*.txt”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)
Expression to get first file:
Directory.GetFiles(yourfolder_path,“*.txt”).OrderByAscending(Function(d) New FileInfo(d).CreationTime).Tolist(0)
Then using this files names you get the time using string manipulation (substring ,split or regex methods)
Thanks