Skip to content

Instantly share code, notes, and snippets.

Last active Jul 7, 2019
What would you like to do?
using System;
using System.Globalization;
static void Main(string[] args)
var mes = ExibirMesPorExtenso(new DateTime(2019, 7, 7));
Console.WriteLine(mes); //julho
public static string ExibirMesPorExtenso(DateTime data)
return data.ToString("MMMM", CultureInfo.CreateSpecificCulture("pt-br"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment