Issue in Splitting the value of the variable

Hi

Variable holds value= 22-Dec-23

i want Dec-23 from that value

Output: Dec-23

Please help me out with the solution

Thanks
Likitha

@vinjam_likitha

Please try this

value.Split({"-"},2,StringSPlitOptions.None)(1)

cheers

Check this post out

Hi @vinjam_likitha

Use regex pattern to extract the value. Pattern: \w*-\d\d

image

Regards,
Kaviyarasu N

Hi ,

Thanks @Anil_G,@michael.zura,@Kaviyarasu_N for solution

I used split operation @Anil_G its working for me.

1 Like

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