Skip to content

Instantly share code, notes, and snippets.

@ShilGen
Created October 2, 2023 07:15
Show Gist options
  • Save ShilGen/083bb448088e45ab258c9bcf14d6d52c to your computer and use it in GitHub Desktop.
Save ShilGen/083bb448088e45ab258c9bcf14d6d52c to your computer and use it in GitHub Desktop.
public static class Helper
{
public static string getMonthName ( DateTime dt ) {
string[] m = new string[]{
"Январь",
"Февраль",
"Март",
"Апрель",
"Май",
"Июнь",
"Июль",
"Август",
"Сентябрь",
"Октябрь",
"Ноябрь",
"Декабрь"
};
return m[dt.Month - 1];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment