DateTimeFormatInfo usDtfi = new CultureInfo("en-US", false).DateTimeFormat;
DateTimeFormatInfo ukDtfi = new CultureInfo("en-GB", false).DateTimeFormat;
string result = Convert.ToDateTime("12/01/2011", usDtfi).ToString(ukDtfi.ShortDatePattern);
This will do the trick ^^
More Related Contents:
- An async/await example that causes a deadlock
- Could not load file or assembly or one of its dependencies
- In C#, what is the difference between public, private, protected, and having no access modifier?
- How to apply an XSLT Stylesheet in C#
- Best Practice for Forcing Garbage Collection in C#
- How can I String.Format a TimeSpan object with a custom format in .NET?
- C# variable scoping: ‘x’ cannot be declared in this scope because it would give a different meaning to ‘x’
- The cast to value type ‘Int32’ failed because the materialized value is null
- HTTP Error 500.30 – ANCM In-Process Start Failure
- Dynamically Created Controls losing data after postback
- Getting the folder name from a full filename path
- Order of serialized fields using JSON.NET
- What are the downsides to turning off ProxyCreationEnabled for CTP5 of EF code first
- OutOfMemoryException while populating MemoryStream: 256MB allocation on 16GB system
- Raise event thread safely – best practice [duplicate]
- Set TabPage Header Color
- Calculating Bandwidth
- Mixed mode assembly is built against version ‘v1.1.4322’
- Should I take ILogger, ILogger, ILoggerFactory or ILoggerProvider for a library?
- Where are the ControllerContext and ViewEngines properties in MVC 6 Controller?
- Inheritance on a constrained generic type parameter
- How can I sort a List by multiple T.attributes?
- WriteLine with a class
- Why does Random.Next() always return the same number [duplicate]
- How to get Command Line info for a process in PowerShell or C#
- Bearer authentication in Swagger UI, when migrating to Swashbuckle.AspNetCore version 5
- ASP.NET MVC – Slow initial load
- Finding all classes with a particular attribute
- C# XNA Visual Studio: Difference between “release” and “debug” modes?
- Could not load file or assembly System, Version=2.0.5.0 in .NET 4 MVC 4 application