Hi,
I have a file named StaffList_01.11.2022 how can I get the date from file name as datetime format?
Thanks.
Hi,
I have a file named StaffList_01.11.2022 how can I get the date from file name as datetime format?
Thanks.
Hi @makboga,
You can use below
System.Text.RegularExpressions.Regex.Match(String_Vriable.ToString,β\d+\W\d+\W\d+β).ToString
HI @makboga
Try this expression
System.Text.RegularExpressions.Regex.Match("Your String Var","(?<=\_)\S+").ToString
Or
Split("Your string","_")(1)
Regards
Sudharsan
Hi @makboga
You can use this expression. This expression will not select any alphabet and β_β special character.
Date_str = System.Text.RegularExpressions.Regex.Match(βYour String Varβ,β[^A-z_]+β).ToString
HI @makboga
Try this expression
System.Text.RegularExpressions.Regex.Match("YourString","\d{2}.\d{2}.\d{4}").ToString.trim
Regards
Gokul