Compare file name

I want to compare the dates of 2 excel files, then return true or false
-> True

Can someone help me, plsssss

Use regular expression"\d" for Path.GetFilenameWithoutExtension(File1path) and Path.GetFilenameWithoutExtension(File2path) and compareboth results

1 Like

I would like to receive the value 20200756_1300 can you help me?

@Th_nh_Nguy_n_Cong Can you tell me what date is it ?

Looking at that data 2020 is the year, 07 is the Month, But 56 can’t be the date :sweat_smile:

If you want to get that data we can use regex and extract it as shown in the below link :

But if you have to compare it, you cannot compare it directly, since you want to perform a Date Comparison and not just a String Comparison

Please find here. I have hard coded the input value. You can supply it dynamically from FileNameSample.xaml (5.5 KB)


Thank you so much!

I have found the problem of solving it
Thanks to you :smiling_face_with_three_hearts:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.