Answers for "Days till Xmas"

C#
9

how many seconds till christmas

Idk get the chrome christmas countdown extension it will tell you
Posted by: Guest on December-03-2020
0

Days till Xmas

public void DaysTillXmas()
{
    DateTime Xmas = new DateTime(DateTime.Now.Year, 12, 25);
    TimeSpan diff = (Xmas - DateTime.Now);
    Console.WriteLine(diff.Days + " Days till Christmas.");
}
Posted by: Guest on October-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language