Set To Begin Of Day - CSharp System

CSharp examples for System:DateTime Day

Description

Set To Begin Of Day

Demo Code


using System;// w w w .  j  ava  2  s .  c o  m

public class Main{
        #region Public Methods and Operators

        public static DateTime SetToBeginOfDay(this DateTime date)
        {
            return new DateTime(date.Year, date.Month, date.Day);
        }
}

Related Tutorials