How to write all letter with capital letters?

Hi,

I have to take name of last month in capital letters and in Turkish. When I use the code below, one letter is lowered because it is a Turkish character.

str_Month= DateTime.Now.AddMonths(-1).ToString(“MMMM”, System.Globalization.CultureInfo.CreateSpecificCulture(“TR-tr”)).ToString

For example November=KASIM in Turkish, I get it like KASıM.

I use toUpper but it didnt work.

Hello @ozgecatak

ToUpper should work to change to upper case. But make sure all the letters in the word are alphabets. I tried the below workflow and its working as expected.

image

Thanks

@ozgecatak

As you given example Input=KASIM in Turkish, to get this as capital letters try with below syntax it will work

Input.ToUpper

Thanks
Varun

Hello @ozgecatak
Kindly try this below code

DateTime.Now.AddMonths(-1).ToString(“MMMM”, System.Globalization.CultureInfo.CreateSpecificCulture(“TR-tr”)).ToString.ToUpper(System.Globalization.CultureInfo.CreateSpecificCulture(“TR-tr”))

image

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