--- lang: ja-jp breaks: true --- # C# DateTime.AddMonths の仕様 2023-10-18 ## 1月末日に1か月足すと、2月末日になる。 ```csharp= Console.WriteLine((new DateTime(2023, 1, 31))); Console.WriteLine((new DateTime(2023, 1, 31).AddMonths(1))); ```  ###### tags: `C#` `DateTime` `AddMonths`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up