Get First Day In Month - CSharp System

CSharp examples for System:DateTime Month

Description

Get First Day In Month

Demo Code


using System.Globalization;
using System;//from   ww w.  j  a  v a2s  . c  om

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

Related Tutorials