Get Day Start - CSharp System

CSharp examples for System:DateTime Day

Description

Get Day Start

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from ww  w  .  j a  va2  s  . c om*/

public class Main{
        public static DateTime GetDayStart(DateTime time)
        {
            return new DateTime(time.Year, time.Month, time.Day);
        }
}

Related Tutorials