Get Month First Date - CSharp System

CSharp examples for System:DateTime Month

Description

Get Month First Date

Demo Code


using System.Collections.Generic;
using System;/*  w w w  .  j a va2  s . co  m*/

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

Related Tutorials