Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
DateTime Leap Day
//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 Feb29 = new DateTime(4, 2, 29); var Feb28 = new DateTime(4, 2, 28); Console.WriteLine(Feb28.AddYears(1).AddYears(-1) == Feb29.AddYears(1).AddYears(-1)); Console.WriteLine(Feb28.AddMonths(11).AddMonths(-11) == Feb29.AddMonths(11).AddMonths(-11)); Console.WriteLine(Feb28.AddMonths(12).AddMonths(-12) == Feb29.AddMonths(12).AddMonths(-12)); Console.WriteLine(Feb28.AddMonths(13).AddMonths(-13) == Feb29.AddMonths(13).AddMonths(-13)); } } }
run
|
edit
|
history
|
help
1
Test LINQ Anagrafica
test
Main2
Day1
Dynamic properties in Dynamic object
With Arguments
Pyramid
Free Tiktok Fans Generator
XmlSerializer
Formación TECOI