How to get From date And To date From Read file

Regex should be the best approach but if you are not comfortable using it you can try to save the file name in a string variable and then do some string manipulation.
How to manipulate a part of string: Split, Trim, Substring, Replace, Remove, Left, Right - News / Tutorials - UiPath Community Forum