Hi
I have some text in database like
new delhi
kullu manali . I want to convert them to Propercase
Thanks
Hi
I have some text in database like
new delhi
kullu manali . I want to convert them to Propercase
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Apr 8, 2023, 3:59 AM
Ramco RamcoPosted Apr 8, 2023, 3:44 AM
Hi Tuhin
Will it always be en-US
Thanks
Tuhin PaulPosted Apr 7, 2023, 5:18 PM
You can use the
TextInfo.ToTitleCase()method to convert a string to Propercase.We first create a
TextInfoobject using theCultureInfoclass with the language and region settings. Then we use theToTitleCase()method to convert the input string to PropercaseTuhin PaulPosted Apr 7, 2023, 5:17 PM
To convert the text in your database to Propercase, you can use a function that capitalizes the first letter of each word in a string.