Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Date Example
//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; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here DateTime x = Convert.ToDateTime("2010-10-23 01:02:45"); DateTime y = Convert.ToDateTime("2010/1/23 1:05 AM" ); Console.WriteLine(x.ToString("yyyy-MM-dd HH:mm:ss")); Console.WriteLine(y.ToString("yyyy-MM-dd HH:mm:ss")); } } }
run
|
edit
|
history
|
help
0
MyUDA03Code0419-1176.cs
array with c#
timeleft
Max occured character in a string
Fórum ➡ Using Regex to insert "item" tags into the unique "list" tag of an XML data ♦
Select, Foreach and Exceptions in C#
Event .net guidelines
346625
PC/DDS Discussion
BST