CSharp examples for System:DateTime Day
Trim Days
using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.Generic; using System;/*from ww w . j a va 2s . co m*/ public class Main{ public static DateTime TrimDays(this DateTime d) { return new DateTime(d.Year, d.Month, 1, 0, 0, 0, 0); } }