Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Date Comparison
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Globalization; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var utcStartDate = DateTime.Now; var artel = string.Format("var messageSchedulerStartTime = new Date({0}, {1} - 1, {2}, {3}, {4}, {5});\n", utcStartDate.Year, utcStartDate.Month, utcStartDate.Day, utcStartDate.Hour, utcStartDate.Minute, utcStartDate.Second); var mark = string.Format("var messageSchedulerStartTime = new Date({0});\n",utcStartDate.ToString("yyyy, MM - 1, d, H, m, s")); Console.WriteLine(artel); Console.WriteLine(mark); } } }
run
|
edit
|
history
|
help
0
Numbers separated by space
Lambda Expression
Sort example
C# - Creating XLS filename from datetime
Tarkov Time
Delegate & anonymous method
Test
SquareMatrixPlusFieldMatrix
Shorten SMS Text
Cast int to enum in C#