Change Month format to Indonesia

Hello,
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?

HI,

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"))

Regards,

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.