Get the complete month name in English

前端 未结 6 597
予麋鹿
予麋鹿 2021-01-17 07:31

I use DateTime.Now.ToString(\"MMMM\") in order to get the current month\'s full name. It works well, but I get it in Hebrew.
Is there an option to

6条回答
  •  遇见更好的自我
    2021-01-17 07:52

    Pass in the culture in which you want the name formatted. Like this:

    DateTime.Now.ToString("MMMM", new CultureInfo("en-GB"));
    

提交回复
热议问题