Advertisement
IanosStefanCristian

1. 1. Convert Number to Corresponding Month Name (v2)--1 line of code

Mar 9th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. using System.Globalization;
  2. public class Program
  3. {
  4. public static string MonthName(int num)
  5. {
  6. return CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(num);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement