CSharp examples for System:DateTime Month
Beginning Of Month
using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.Generic; using System;// ww w .j a v a 2s .c o m public class Main{ public static DateTime BeginningOfMonth(this DateTime dt) { return new DateTime(dt.Year, dt.Month, 1); } }