Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Distinct of the given array
Big numbers
== and Equals Differeance in C#
learning1
Math 5.8
Math v9.2
Use ConcurrentQueue and ConcurrentDictionary with TPL (Simple example)
Find smallest and largest integers in unsorted array
Array value changer?
cte-like constructs in C#
stackse - search stackoverflow differently
Please log in to post a comment.