Here is the string 2022-11-21 19:32:15.162039+00:00
I want to get the timestamp 19:32:15 dynamically so even it is placed anywhere in the string still can be captured
Is there a way to do it?
TIA
Here is the string 2022-11-21 19:32:15.162039+00:00
I want to get the timestamp 19:32:15 dynamically so even it is placed anywhere in the string still can be captured
Is there a way to do it?
TIA
Hi,
Can you try the following?
System.Text.RegularExpressions.Regex.Match(yourString,"\b\d{2}:\d{2}:\d{2}\b").Value
Regards,
Tnx for this it works!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.