How to get only date from a string value?

Hi all,

Tier one Medical Benefits as of 02/01/2022 for Graciela Gonzalez.

From above string I need only date i.e 02/01/2022.

please do needful.


Quick Dirty pattern:

I tried but I am getting like this

For inspections / checks we recommend highly to use the debugging panels (e.g. immediate)
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

the message box will show you the datatype but nor the extracted value

check with:

or use:
strValue = System.Text.RegularExpressions.Regex.Match(YourStringVar, YourPattern).Value

Thanks @ppr

last day of the every year should always 12/31/2022. 12/31/2023 and so on
please help in this

similar as written in your other topic. Please scope 1 topic = 1 case. Just open a new topic. May we ask you also to elaborate more on the question. Thanks

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