Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
show the date
//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) { var date =DateTime.Now; //Your code goes here Console.WriteLine("Date:"); Console.WriteLine(date.DayOfYear); Console.WriteLine("Day:"); Console.WriteLine(date.DayOfWeek); Console.WriteLine("Month:"); Console.WriteLine(date.Month); Console.WriteLine("Year:"); Console.WriteLine(date.Year); Console.WriteLine("Time:"); Console.WriteLine(date.TimeOfDay); } } }
run
|
edit
|
history
|
help
0
Sample
Fórum Mimicking Array Names Being Defined at Runtime
Bubble Sort
Numerical string to fancy graphical output
MegaWays3
Testing bitwise stuff
Random number IF var change
FromBase64String
2.10.4
TestCodec1