Get Next Month - CSharp System

CSharp examples for System:DateTime Month

Description

Get Next Month

Demo Code


using System.Threading;
using System.Globalization;
using System.Collections.Generic;
using System;//from  ww  w.j  a  v  a 2 s  .c  om

public class Main{
        public static DateTime GetNextMonth(this DateTime date)
        {
            return date.AddMonths(1);
        }
}

Related Tutorials