About substring

MY_DOB_MMDDYYYY_2022 ,How to extract only MMDDYYYY using Substring?

HI,

If “MY_DOB_” is fixed string, the following will work.

image

"MY_DOB_MMDDYYYY_2022".Substring(7,8)

Regards,

1 Like

YourString.Split("_"c)(2).Trim

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