Hi, Thank you very much for the code
But I need to check that if the Date is valid or not
Lets say if we pass this SourceFile1_99999999999999.txt then should not return 1.
We need check the condition YYYY should be between 1950 to Current year month is between 1 to 12 and day between 1 to 31
My File format like FileName_YYYYMMDDHHMISS.txt
I appreciate if you give me idea on that.
Thanks,
Unnati