How to extract only DateTime value i.e,2019-03-04 09:26:32 from the below column value in a datatable:
“2019-03-04 09:26:32\r\n\r\n03-04 09:26\r\n\r\n8mo”
How to extract only DateTime value i.e,2019-03-04 09:26:32 from the below column value in a datatable:
“2019-03-04 09:26:32\r\n\r\n03-04 09:26\r\n\r\n8mo”
try below one
text = “2019-03-04 09:26:32\r\n\r\n03-04 09:26\r\n\r\n8mo”
requiredDate = System.Text.RegularExpressions.Regex.Match(text, “[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}”).Value
UiPath have two exclusive activities to get data through Regular expression.
Thanks!