Start Of Current Month - CSharp System

CSharp examples for System:DateTime Month

Description

Start Of Current Month

Demo Code



public class Main{
        public static DateTime StartOfCurrentMonth(this DateTime value)
        {//  ww w .  ja  v a2 s . co  m
            return new DateTime(DateTime.Now.Year, DateTime.Now.Month, 01);
        }
}

Related Tutorials