Created
June 10, 2015 21:19
-
-
Save mattjohnsonpint/2355bf6227618ec5b7b4 to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Globalization; | |
using System.Threading; | |
namespace ConsoleApplication | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var culture = (CultureInfo)CultureInfo.CurrentCulture.Clone(); | |
culture.DateTimeFormat.ShortDatePattern = "01/01/2000"; | |
Thread.CurrentThread.CurrentCulture = culture; | |
Console.WriteLine(DateTime.Today); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment