Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
int array element change with xor
Enumeration
equation with a variable on the 2nd power
Random number generator With IF's that sometimes cant count
Math Prime Numbers
C# interview question. Closure pitfalls.
n th to last element
Polygon Util
www
concat
Please log in to post a comment.