Extract date from a sentence

I want to extract the date from the following statement?
“22-10-2020 19. 30. 25 Transaction Record”
I want to extract only “22-10-2020”

note: that will always be the format of the statements

Thanks in advance

we can do it with Regex

also have a look here:


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