CultureInfo ci = new CultureInfo("en-US");
DateTime now = DateTime.Now;
for (int i = 0; i < 12; i++)
{
string month = now.ToString("MMM",ci);
now = now.AddMonths(1);
}
时间: 2024-12-23 17:00:50
CultureInfo ci = new CultureInfo("en-US");
DateTime now = DateTime.Now;
for (int i = 0; i < 12; i++)
{
string month = now.ToString("MMM",ci);
now = now.AddMonths(1);
}