Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
dateTime parsing
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) 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) { //Your code goes here Console.WriteLine(DateTime.ParseExact("2020-01-06", DateTimeFormats, CultureInfo.InvariantCulture, DateTimeStyles.None)); } public static string[] DateTimeFormats = new string[] { "yyyy-MM-dd", "yyyy/MM/dd", "yyyy-M-dd", "yyyy/M/dd", "yyyy-MM-dd HH:mm:ss", "yyyy/MM/dd HH:mm:ss", "yyyy-MM-dd HH:mm:ss tt", "yyyy/MM/dd HH:mm:ss tt", "yyyy-MM-dd H:mm:ss", "yyyy/MM/dd H:mm:ss", "yyyy-MM-dd H:mm:ss tt", "yyyy/MM/dd H:mm:ss tt" }; } }
run
|
edit
|
history
|
help
1
Reverse String and Binary Search of floating point values
Events
Find smallest and largest in unsorted array
v v
Trim Strings
Comparing hashing with different encoding and also transferring bytes
GetMyAppintmentData
Zadanka
asxasxdf
practice program