Change Month format to Indonesia

I have a question about changing Month format from English to Indonesia

The function is:
Datetime.ParseExact(“May 2022”, “MMM yyyy”, New System.Globalization.CultureInfo(“id-ID”))

Screenshot error:

Anyone can help me?


Can you try the following expression?

Datetime.ParseExact("May 2022", "MMM yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString("MMM yyyy",New System.Globalization.CultureInfo("id-ID"))


1 Like

thank you, that function is running well… god bless

1 Like

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