Add week to a DateTime

image_pdfimage_print
   
 
//Octavalent Extension Methods
//http://sdfasdf.codeplex.com/
//Library of extension methods for .Net create by Octavalent (www.octavalent.nl)

using System;
    public static class DateTimeExtensions
    {

        public static DateTime AddWeek(this DateTime dateTime, int count)
        {
            return dateTime.AddDays(7*count);
        }
   }