Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
CultureInfo example
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Globalization; namespace Rextester { public class Program { public static void Main(string[] args) { DateTime dt = new DateTime(2017,06,19); string format = new CultureInfo("es-Es").DateTimeFormat.ShortDatePattern; CultureInfo ci1 = new CultureInfo("en-US"); CultureInfo ci2 = new CultureInfo("es-MX"); Console.WriteLine(dt.ToString(format)); Console.WriteLine(dt.ToString("d",ci1)); Console.WriteLine(dt.ToString("d",ci2)); } } }
run
|
edit
|
history
|
help
0
sum of two array elements
D13
Cotton Farm 0.0.2.02
PolyMorphism
AAAXACAdxcd
Singletone Class
Intuit // C# // listing_4.8 (while)
Saga name NLog
a
Fibonacci Recursive C#