Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Datum_CRM
//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) { var format = "M/d/yyyy hh:mm:ss tt"; var oldDate = "12/1/2017 12:00:22 AM"; DateTime dateTime; if(DateTime.TryParseExact(oldDate, format, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateTime)) Console.WriteLine(dateTime); } } }
run
|
edit
|
history
|
help
0
Random number guessing game v1
c++
TotalHours FromTicks
a6
Prime Number
ray's 2nd test
Explorer Diamond
Login Silencioso
rzError
regex: rozważania nad powielaniem grup za pomocą kwantyfikatora