DateOnly.AddMonths(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified number of months to the value of this instance.
public:
DateOnly AddMonths(int value);
C#
public DateOnly AddMonths(int value);
member this.AddMonths : int -> DateOnly
Public Function AddMonths (value As Integer) As DateOnly
- value
- Int32
A number of months. The months parameter can be negative or positive.
An object whose value is the sum of the date represented by this instance and months.
Produit | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage (pull requests). Pour plus d’informations, consultez notre guide du contributeur.
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: