Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
time
//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; using System.Threading; namespace Rextester { public class Program { public static void Main(string[] args) { Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("tr-TR"); DateTime date1 = DateTime.Now;Console.WriteLine(date1.ToString()); Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US"); DateTime date2 = DateTime.Now;Console.WriteLine(date2.ToString()); Console.WriteLine(date2.AddHours(3).ToLongTimeString()); List<string> list = new List<string>(); foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures)) { string specName = "(none)"; try { specName = CultureInfo.CreateSpecificCulture(ci.Name).Name; } catch { } list.Add(String.Format("{0,-12}{1,-12}{2}", ci.Name, specName, ci.EnglishName)); } list.Sort(); // sort by name // write to console Console.WriteLine("CULTURE SPEC.CULTURE ENGLISH NAME"); Console.WriteLine("--------------------------------------------------------------"); foreach (string str in list) Console.WriteLine(str); } } }
run
|
edit
|
history
|
help
0
remove special char
Does string contain only digits
Const
ASCII table generator
30272 Example1
Convert String to Pig Latin
Reverse a String Using Hash Function
Plantera mas com escolhas
fds
Sum