I have one field in database and I am getting the multiple dates in the same field. I want to extract multiple dates from the string. Please help me on this
String like:
"7/3/2019 1:20 AM – Request submitted by Ekaterina Rahul 7/3/2019 1:34 AM – Request assigned to 7/3/2019 3:22 AM – PO123456 created"
Best Answer
With the string you have in your example, you can use STRING_SPLIT as the first step
Which gives results
You could then use RIGHT and or TRIM to leave only the dates
Gives
If you want them to be dates at the end, you would need to use CAST / CONVERT to change the string to date format.