Hi i need help to make uppercase for first letter of every word in a sentence

example string : my name is vegeta
output : My Name Is Vegeta

any idea how to do this with a single assign?

Thanks

Hi,

How about the following expression?

(new System.Globalization.CultureInfo("en-US",false).TextInfo).ToTitleCase(yourString)

Regards,

Hi @Ahmad_Rais ,

You can try below code

Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase("this is some text")

image

1 Like

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