Add Weeks - CSharp System

CSharp examples for System:DateTime Week

Description

Add Weeks

Demo Code


using System;/*from  w w  w. j a va 2  s.c  o  m*/

public class Main{
        public static DateTime AddWeeks(this DateTime date, int weeks)
		{
			return date.AddDays(weeks * 7);
		}
}

Related Tutorials