Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
DateTime
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { DateTime mydata =DateTime.Now; //Your code goes here Console.WriteLine(mydata); Console.WriteLine(mydata.ToShortDateString()); Console.WriteLine(mydata.ToShortTimeString()); Console.WriteLine(mydata.ToLongDateString()); Console.WriteLine(mydata.ToLongTimeString()); Console.WriteLine(mydata.AddMonths(4).ToShortDateString()); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Sum Matrix Main Diagonal
Command design pattern
equation with a variable on the 2nd power
2.2 Basic types: Dictionary
Overloading
Testing 004
project euler 17, C#
Y Fibonnoci
axasxasd
Konsol Üçgen Çizimi
Please log in to post a comment.