Last active
February 24, 2019 06:28
-
-
Save priesdelly/ae54610439c23d18c2f4de770baa66f2 to your computer and use it in GitHub Desktop.
Create 12 month via code in .NET Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Form1_Load(object sender, EventArgs e) | |
{ | |
for (int monthNo = 1; monthNo < 12; monthNo++) | |
{ | |
var bar = new DateTime(DateTime.Now.Year, monthNo, 1); | |
listBox1.Items.Add(bar.ToString("MMMM", new CultureInfo("en-US"))); | |
listBox2.Items.Add(bar.ToString("MMMM", new CultureInfo("th-TH"))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment