Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Custom long date
//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) { CultureInfo ci = new CultureInfo("es-ES"); Console.WriteLine("Current culture: \"{0}\"\n", ci.Name); //Your code goes here Console.WriteLine("Hello, world!"); Thread.CurrentThread.CurrentCulture = ci; DateTime myDateTime = new System.DateTime(2001, 5, 16, 3, 2, 15); Console.WriteLine("Long date pattern: \"{0}\"", ci.DateTimeFormat.LongDatePattern); Console.WriteLine("Long date string: \"{0}\"\n", myDateTime.ToLongDateString()); Console.WriteLine("Long date string: \"{0}\"\n", myDateTime.ToString("d MMMM yyyy")); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
double to hex to double lose precision
Hello-Newark-World
Enum Extension
Plt-D v.0.9.3
john
Numbers in Interval Dividable by Given Number
4.1 Composition
30272 Program Ex7_2 switch
ByVal
The modifier 'private' is not valid for this item
Please log in to post a comment.