Change the month to a different language

My robot changes the date to today’s: datetime.Now.ToString(“dd-MMMM-yyyy”)
I get it in the following format: 28-November-2023
How can I change the month from English to Polish?

1 Like

Hi @sullivanne

Try this

PolishDate = DateTime.Now.ToString("dd-MMMM-yyyy", New System.Globalization.CultureInfo("pl-PL"))

Hope this helps!!

1 Like

Hi @sullivanne

Try this:

yourPolishDateString = DateTime.Now.ToString( "dd-MMMMM-yyyy", New System.Globalization.CultureInfo("pl-PL"))

Hope it helps!!

3 Likes

HI @sullivanne

Check out below image for better understanding:

Regards,

1 Like

Thank You very much :):slight_smile:

1 Like

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