Add Quarters - CSharp System

CSharp examples for System:DateTime Quarter

Description

Add Quarters

Demo Code


using System;//from w w w . j av  a 2  s  .c  om

public class Main{
        public static DateTime AddQuarters(this DateTime date, int quarters)
		{
			return date.AddMonths(quarters * 3);
		}
}

Related Tutorials