I’m trying to assign a variable with the date (modified or creation) of a .xlsx-file in a specific location.
After an extensive search of the forum I found Post #250529:
and it works great. However, I will not know the file name and need to use a wildcard. I found this post with the syntax about using a * Post #133486
If I combine this two like:
I get error:
Main.xaml: Compiler error(s) encountered processing expression “new FileInfo(“c:\testfolder\”,”*.xlsx”).CreationTime.ToString(“yyyy/MM/dd”)".
Overload resolution failed because no accessible ‘New’ accepts this number of arguments.
Any help to a newbie is very appreciated!