Gets the end of year.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cmoss.Util { public class DateFunctions { /// <summary> /// Gets the end of year. /// </summary> /// <param name="date">The date.</param> /// <returns></returns> public static DateTime GetEndOfYear(DateTime date) { return new DateTime(new DateTime(date.Year + 1, 1, 1).Ticks - 1); } } }