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
True and false
StringCompare
IsStringAPalindrome
IF... ELSE
sdfghyjtgfredx
IsDivisibleV2
SHA tester
Linq - When using FirstOrDefault, make sure to check for null result
Custom long date
an attempt at making a usable code thing (failed lol)