Skip to content

Instantly share code, notes, and snippets.

@vmussak

vmussak/MesExtenso.cs

Last active Jul 7, 2019
Embed
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
Console.ReadKey();
}
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
You can’t perform that action at this time.