Created
September 12, 2012 19:19
-
-
Save alexsandro-xpt/3709231 to your computer and use it in GitHub Desktop.
Forçando o formato de uma data na cultura do estados unidos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DateTime data; | |
DateTime.TryParse("10/01/2012", CultureInfo.GetCultureInfo("en-US").DateTimeFormat, DateTimeStyles.None ,out data); | |
Console.WriteLine(data.ToString("m")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment