Skip to content

Instantly share code, notes, and snippets.

@mattjohnsonpint
Created June 10, 2015 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattjohnsonpint/2355bf6227618ec5b7b4 to your computer and use it in GitHub Desktop.
Save mattjohnsonpint/2355bf6227618ec5b7b4 to your computer and use it in GitHub Desktop.
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