Il metodo AddYears di C# consente di aggiungere un numero specificato di anni a una data specificata. Restituisce un nuovo oggetto di tipo DateTime che rappresenta la data risultante. Questo metodo è utile quando si desidera calcolare una data futura o passata aggiungendo o sottraendo un certo numero di anni.
this.AddYears in C# (CSharp): 30 esempi trovati. Questi sono i migliori esempi reali in C# (CSharp) per this.AddYears, estratti da progetti open source. Li puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.