Start Of Month - CSharp System

CSharp examples for System:DateTime Month

Description

Start Of Month

Demo Code


using System;//w  w  w .ja v a  2s. c om

public class Main{
        public static DateTime StartOfMonth(this DateTime date)
		{
			return new DateTime(date.Year, date.Month, 1);
		}
}

Related Tutorials