Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Naju Date Format Issue
//Title of this code //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.Globalization; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here DateTime date; string fmt = "MM/dd/yyyy hh:mm tt"; Console.WriteLine(DateTime.TryParseExact("05/31/2018 07:49 PM", fmt, new CultureInfo("en-US"), DateTimeStyles.None, out date)); string fmt1 = "MM/dd/yyyy HH:mm tt"; Console.WriteLine(DateTime.TryParseExact("05/31/2018 07:49 PM", fmt1, new CultureInfo("en-US"), DateTimeStyles.None, out date)); } } }
run
|
edit
|
history
|
help
0
RRR
Talk To Jack
AnonymousFunction (demo)
trees
normalised pagination
Regex fórum 01
Список Лекарств
asdxasxasdf
reverse a stack
Z_non_pow